bootgraph 1.9.0.dev24129__tar.gz → 1.9.0.dev24130__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.
- {bootgraph-1.9.0.dev24129 → bootgraph-1.9.0.dev24130}/PKG-INFO +1 -1
- {bootgraph-1.9.0.dev24129 → bootgraph-1.9.0.dev24130}/bootgraph/schemas/generators.py +4 -22
- {bootgraph-1.9.0.dev24129 → bootgraph-1.9.0.dev24130}/pyproject.toml +1 -1
- {bootgraph-1.9.0.dev24129 → bootgraph-1.9.0.dev24130}/LICENSE +0 -0
- {bootgraph-1.9.0.dev24129 → bootgraph-1.9.0.dev24130}/README.md +0 -0
- {bootgraph-1.9.0.dev24129 → bootgraph-1.9.0.dev24130}/bootgraph/__init__.py +0 -0
- {bootgraph-1.9.0.dev24129 → bootgraph-1.9.0.dev24130}/bootgraph/database/__init__.py +0 -0
- {bootgraph-1.9.0.dev24129 → bootgraph-1.9.0.dev24130}/bootgraph/database/operations.py +0 -0
- {bootgraph-1.9.0.dev24129 → bootgraph-1.9.0.dev24130}/bootgraph/database/utils.py +0 -0
- {bootgraph-1.9.0.dev24129 → bootgraph-1.9.0.dev24130}/bootgraph/dl.py +0 -0
- {bootgraph-1.9.0.dev24129 → bootgraph-1.9.0.dev24130}/bootgraph/models.py +0 -0
- {bootgraph-1.9.0.dev24129 → bootgraph-1.9.0.dev24130}/bootgraph/router.py +0 -0
- {bootgraph-1.9.0.dev24129 → bootgraph-1.9.0.dev24130}/bootgraph/schemas/__init__.py +0 -0
- {bootgraph-1.9.0.dev24129 → bootgraph-1.9.0.dev24130}/bootgraph/schemas/models.py +0 -0
- {bootgraph-1.9.0.dev24129 → bootgraph-1.9.0.dev24130}/bootgraph/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: bootgraph
|
|
3
|
-
Version: 1.9.0.
|
|
3
|
+
Version: 1.9.0.dev24130
|
|
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
|
|
@@ -759,28 +759,6 @@ def get_query(cls: "Graphemy"):
|
|
|
759
759
|
return ModelQuery, Filter
|
|
760
760
|
|
|
761
761
|
|
|
762
|
-
def get_put_mutation(cls: "Graphemy") -> StrawberryField:
|
|
763
|
-
pk = [pk.name for pk in inspect(cls).primary_key]
|
|
764
|
-
|
|
765
|
-
class Filter:
|
|
766
|
-
pass
|
|
767
|
-
|
|
768
|
-
for field_name, field in cls.__annotations__.items():
|
|
769
|
-
setattr(
|
|
770
|
-
Filter,
|
|
771
|
-
field_name,
|
|
772
|
-
strawberry.field(default=None, graphql_type=Optional[field]),
|
|
773
|
-
)
|
|
774
|
-
input = strawberry.input(name=f"{cls.__name__}Input")(Filter)
|
|
775
|
-
|
|
776
|
-
async def mutation(self, params: input) -> cls.__strawberry_schema__:
|
|
777
|
-
return await put_item(cls, params, pk)
|
|
778
|
-
|
|
779
|
-
return strawberry.mutation(
|
|
780
|
-
mutation,
|
|
781
|
-
permission_classes=[Setup.get_auth(cls, "mutation")],
|
|
782
|
-
)
|
|
783
|
-
|
|
784
762
|
|
|
785
763
|
def get_delete_mutation(cls: "Graphemy") -> StrawberryField:
|
|
786
764
|
pk = [pk.name for pk in inspect(cls).primary_key]
|
|
@@ -911,6 +889,10 @@ def get_mutations(cls: "Graphemy"):
|
|
|
911
889
|
for permission_class in permission_classes:
|
|
912
890
|
permission_class.item_model = cls
|
|
913
891
|
|
|
892
|
+
fields[f"{custom_mutation.__name__}Model"] = strawberry.mutation(
|
|
893
|
+
resolver=custom_mutation,
|
|
894
|
+
permission_classes=permission_classes
|
|
895
|
+
)
|
|
914
896
|
setattr(
|
|
915
897
|
ModelMutations,
|
|
916
898
|
custom_mutation.__name__,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "bootgraph"
|
|
3
|
-
version = "v1.9.0.
|
|
3
|
+
version = "v1.9.0.dev24130"
|
|
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"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|