From 1c88f9be579c640a38e0904e7d81759478789f9f Mon Sep 17 00:00:00 2001 From: Jonathan Kim Date: Sat, 9 Mar 2019 21:03:11 +0100 Subject: [PATCH] Fixes middleware documentation Closes #812 --- docs/execution/middleware.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/execution/middleware.rst b/docs/execution/middleware.rst index 55efe730..f7dac708 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(self, next, root, info, **args): + def resolve(next, root, info, **args): if info.field_name == 'user': return None return next(root, info, **args)