Update documentation

* resolver function arguments changed in `objecttypes.rst`
* small typo in `mutations.rst`
This commit is contained in:
Raphael Boidol 2018-04-20 14:21:59 +02:00 committed by Raphael Boidol
parent c102458808
commit 5c4736e102
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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