mirror of
https://github.com/graphql-python/graphene.git
synced 2025-02-02 12:44:15 +03:00
commit
9da46e8c99
|
@ -24,7 +24,7 @@ This example defines a Mutation:
|
||||||
ok = True
|
ok = True
|
||||||
return CreatePerson(person=person, ok=ok)
|
return CreatePerson(person=person, ok=ok)
|
||||||
|
|
||||||
**person** and **ok** are the output fields of the Mutation when is
|
**person** and **ok** are the output fields of the Mutation when it is
|
||||||
resolved.
|
resolved.
|
||||||
|
|
||||||
**Input** attributes are the arguments that the Mutation
|
**Input** attributes are the arguments that the Mutation
|
||||||
|
|
|
@ -50,7 +50,7 @@ A resolver is a method that resolves certain fields within a
|
||||||
``ObjectType``. If not specififed otherwise, the resolver of a
|
``ObjectType``. If not specififed otherwise, the resolver of a
|
||||||
field is the ``resolve_{field_name}`` method on the ``ObjectType``.
|
field is the ``resolve_{field_name}`` method on the ``ObjectType``.
|
||||||
|
|
||||||
By default resolvers take the arguments ``args``, ``context`` and ``info``.
|
By default resolvers take the arguments ``info`` and ``*args``.
|
||||||
|
|
||||||
NOTE: The resolvers on a ``ObjectType`` are always treated as ``staticmethod``\ s,
|
NOTE: The resolvers on a ``ObjectType`` are always treated as ``staticmethod``\ s,
|
||||||
so the first argument to the resolver method ``self`` (or ``root``) need
|
so the first argument to the resolver method ``self`` (or ``root``) need
|
||||||
|
|
Loading…
Reference in New Issue
Block a user