|
|
@@ -14,7 +14,6 @@ class DummyModelType:
|
|
|
pass
|
|
|
|
|
|
|
|
|
-"""
|
|
|
@strawberry.type
|
|
|
class DummyQuery:
|
|
|
@strawberry.field
|
|
|
@@ -22,18 +21,7 @@ class DummyQuery:
|
|
|
return None
|
|
|
dummymodel_list: List[DummyModelType] = strawberry_django.field()
|
|
|
|
|
|
-schema = strawberry.Schema(
|
|
|
- query=DummyQuery,
|
|
|
- # config=StrawberryConfig(auto_camel_case=False),
|
|
|
-)
|
|
|
-"""
|
|
|
-
|
|
|
-
|
|
|
-@strawberry.type
|
|
|
-class Query:
|
|
|
- fruits: list[int] = strawberry_django.field()
|
|
|
-
|
|
|
|
|
|
-schema2 = strawberry.Schema(
|
|
|
- query=Query,
|
|
|
-)
|
|
|
+schema = [
|
|
|
+ DummyQuery,
|
|
|
+]
|