bootgraph 1.8.0.dev24099__tar.gz → 1.9.0.dev24128__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: bootgraph
3
- Version: 1.8.0.dev24099
3
+ Version: 1.9.0.dev24128
4
4
  Summary: A Python library for integrating SQLModel and Strawberry, providing a seamless GraphQL integration with FastAPI and advanced features for database interactions.
5
5
  Home-page: https://github.com/MDoreto/graphemy
6
6
  License: MIT
@@ -146,7 +146,7 @@ class GraphemyRouter(GraphQLRouter):
146
146
  cls_query, cls_filter = get_query(cls)
147
147
  setattr(
148
148
  sys.modules[__name__],
149
- cls.__name__ + "Schema",
149
+ cls.__name__,
150
150
  cls.__strawberry_schema__,
151
151
  )
152
152
  setattr(
@@ -89,13 +89,13 @@ def set_schema(
89
89
  ))
90
90
 
91
91
  if not cls.__strawberry_schema__:
92
- extra_schema = strawberry.type(cls.Strawberry, name=f"{cls.__name__}Schema2")
92
+ extra_schema = strawberry.type(cls.Strawberry, name=f"{cls.__name__}")
93
93
  strawberry_schema = strawberry.experimental.pydantic.type(
94
- cls, all_fields=True, name=f"{cls.__name__}Schema"
94
+ cls, all_fields=True, name=cls.__name__
95
95
  )(Schema)
96
96
  if extra_schema.__annotations__:
97
97
  strawberry_schema = merge_types(
98
- f"{cls.__name__}Schema", (strawberry_schema, extra_schema)
98
+ cls.__name__, (strawberry_schema, extra_schema)
99
99
  )
100
100
  cls.__strawberry_schema__ = strawberry_schema
101
101
 
@@ -140,7 +140,7 @@ def get_many_relation_function(
140
140
 
141
141
  # Define the return type using Strawberry's lazy type resolution
142
142
  return_type = Annotated[
143
- f"{class_type}Schema",
143
+ f"{class_type}",
144
144
  strawberry.lazy("bootgraph.router"),
145
145
  ]
146
146
  if is_list:
@@ -322,7 +322,7 @@ def get_dl_function(
322
322
 
323
323
  # Define the return type using Strawberry's lazy type resolution
324
324
  return_type = Annotated[
325
- f"{class_type}Schema",
325
+ f"{class_type}", # Schema
326
326
  strawberry.lazy("bootgraph.router"),
327
327
  ]
328
328
  if is_list:
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "bootgraph"
3
- version = "v1.8.0.dev24099"
3
+ version = "v1.9.0.dev24128"
4
4
  description = "A Python library for integrating SQLModel and Strawberry, providing a seamless GraphQL integration with FastAPI and advanced features for database interactions."
5
5
  authors = ["Matheus Doreto <matheusdoreto.md@gmail.com>", "Pavel Mulin <mulin.pasha@gmail.com>"]
6
6
  readme = "README.md"