Update objecttypes.rst

This commit is contained in:
Johan Zietsman 2018-10-30 14:17:44 +02:00 committed by GitHub
parent 95cfff8c37
commit 52f54f51b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,13 +46,13 @@ The above ``Person`` ObjectType has the following schema representation:
Resolvers
---------
A resolver is a method that resolves certain fields within a
A resolver is a method that resolves certain fields within an
``ObjectType``. If not specified otherwise, the resolver of a
field is the ``resolve_{field_name}`` method on the ``ObjectType``.
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 an ``ObjectType`` are always treated as ``staticmethod``\ s,
so the first argument to the resolver method ``self`` (or ``root``) need
not be an actual instance of the ``ObjectType``.