File tree 2 files changed +2
-6
lines changed
2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -48,11 +48,7 @@ So, we can finish our schema like this:
48
48
class MyMutations (graphene .ObjectType ):
49
49
create_person = CreatePerson.Field()
50
50
51
- # We must define a query for our schema
52
- class Query (graphene .ObjectType ):
53
- person = graphene.Field(Person)
54
-
55
- schema = graphene.Schema(query = Query, mutation = MyMutations)
51
+ schema = graphene.Schema(mutation = MyMutations)
56
52
57
53
Executing the Mutation
58
54
----------------------
Original file line number Diff line number Diff line change @@ -381,7 +381,7 @@ class Schema:
381
381
questions about the types through introspection.
382
382
383
383
Args:
384
- query (Type[ObjectType]): Root query *ObjectType*. Describes entry point for fields to *read*
384
+ query (Optional[ Type[ObjectType] ]): Root query *ObjectType*. Describes entry point for fields to *read*
385
385
data in your Schema.
386
386
mutation (Optional[Type[ObjectType]]): Root mutation *ObjectType*. Describes entry point for
387
387
fields to *create, update or delete* data in your API.
You can’t perform that action at this time.
0 commit comments