diff --git a/docs/execution/middleware.rst b/docs/execution/middleware.rst index ad109e44..2a5e20f7 100644 --- a/docs/execution/middleware.rst +++ b/docs/execution/middleware.rst @@ -29,7 +29,7 @@ This middleware only continues evaluation if the ``field_name`` is not ``'user'` .. code:: python class AuthorizationMiddleware(object): - def resolve(next, root, info, **args): + def resolve(self, next, root, info, **args): if info.field_name == 'user': return None return next(root, info, **args)