mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-11 04:07:16 +03:00
Update documentation
* resolver function arguments changed in `objecttypes.rst` * small typo in `mutations.rst`
This commit is contained in:
parent
c102458808
commit
5c4736e102
|
@ -24,7 +24,7 @@ This example defines a Mutation:
|
|||
ok = True
|
||||
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.
|
||||
|
||||
**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
|
||||
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,
|
||||
so the first argument to the resolver method ``self`` (or ``root``) need
|
||||
|
|
Loading…
Reference in New Issue
Block a user