Fixes middleware documentation

Closes #812
This commit is contained in:
Jonathan Kim 2019-03-09 21:03:11 +01:00 committed by GitHub
parent 9ae2359b87
commit 1c88f9be57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,7 @@ This middleware only continues evaluation if the ``field_name`` is not ``'user'`
.. code:: python .. code:: python
class AuthorizationMiddleware(object): class AuthorizationMiddleware(object):
def resolve(self, next, root, info, **args): def resolve(next, root, info, **args):
if info.field_name == 'user': if info.field_name == 'user':
return None return None
return next(root, info, **args) return next(root, info, **args)