Skip to content

Commit

Permalink
Update requirement for Query type in mutation docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jkimbo committed Jun 24, 2020
1 parent 47c63f3 commit 5fc271c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions docs/types/mutations.rst
Expand Up @@ -48,11 +48,7 @@ So, we can finish our schema like this:
class MyMutations(graphene.ObjectType):
create_person = CreatePerson.Field()
# We must define a query for our schema
class Query(graphene.ObjectType):
person = graphene.Field(Person)
schema = graphene.Schema(query=Query, mutation=MyMutations)
schema = graphene.Schema(mutation=MyMutations)
Executing the Mutation
----------------------
Expand Down
2 changes: 1 addition & 1 deletion graphene/types/schema.py
Expand Up @@ -381,7 +381,7 @@ class Schema:
questions about the types through introspection.
Args:
query (Type[ObjectType]): Root query *ObjectType*. Describes entry point for fields to *read*
query (Optional[Type[ObjectType]]): Root query *ObjectType*. Describes entry point for fields to *read*
data in your Schema.
mutation (Optional[Type[ObjectType]]): Root mutation *ObjectType*. Describes entry point for
fields to *create, update or delete* data in your API.
Expand Down

0 comments on commit 5fc271c

Please sign in to comment.