Skip to content

Commit b71a2cb

Browse files
committed
Fixed middleware docs to use whitespaces instead of tabs
1 parent bd754c1 commit b71a2cb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/execution/middleware.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ This middleware only continues evaluation if the ``field_name`` is not ``'user'`
3030

3131
.. code:: python
3232
33-
class AuthorizationMiddleware(object):
34-
def resolve(self, next, root, args, context, info):
35-
if info.field_name == 'user':
36-
return None
37-
return next(root, args, context, info)
33+
class AuthorizationMiddleware(object):
34+
def resolve(self, next, root, args, context, info):
35+
if info.field_name == 'user':
36+
return None
37+
return next(root, args, context, info)
3838
3939
4040
And then execute it with:
4141

4242
.. code:: python
4343
44-
result = schema.execute('THE QUERY', middleware=[AuthorizationMiddleware()])
44+
result = schema.execute('THE QUERY', middleware=[AuthorizationMiddleware()])

0 commit comments

Comments
 (0)