mirror of
https://github.com/graphql-python/graphene.git
synced 2025-07-18 12:02:19 +03:00
Revert "Update requirement for Query type in mutation docs (#1213)"
This reverts commit a9625dac0e
.
This commit is contained in:
parent
a9625dac0e
commit
198a4c7b5e
|
@ -48,7 +48,11 @@ So, we can finish our schema like this:
|
||||||
class MyMutations(graphene.ObjectType):
|
class MyMutations(graphene.ObjectType):
|
||||||
create_person = CreatePerson.Field()
|
create_person = CreatePerson.Field()
|
||||||
|
|
||||||
schema = graphene.Schema(mutation=MyMutations)
|
# We must define a query for our schema
|
||||||
|
class Query(graphene.ObjectType):
|
||||||
|
person = graphene.Field(Person)
|
||||||
|
|
||||||
|
schema = graphene.Schema(query=Query, mutation=MyMutations)
|
||||||
|
|
||||||
Executing the Mutation
|
Executing the Mutation
|
||||||
----------------------
|
----------------------
|
||||||
|
|
|
@ -381,7 +381,7 @@ class Schema:
|
||||||
questions about the types through introspection.
|
questions about the types through introspection.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
query (Optional[Type[ObjectType]]): Root query *ObjectType*. Describes entry point for fields to *read*
|
query (Type[ObjectType]): Root query *ObjectType*. Describes entry point for fields to *read*
|
||||||
data in your Schema.
|
data in your Schema.
|
||||||
mutation (Optional[Type[ObjectType]]): Root mutation *ObjectType*. Describes entry point for
|
mutation (Optional[Type[ObjectType]]): Root mutation *ObjectType*. Describes entry point for
|
||||||
fields to *create, update or delete* data in your API.
|
fields to *create, update or delete* data in your API.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user