Clarify execution order in middleware docs (#1475)

This commit is contained in:
Rens Groothuijsen 2022-11-15 08:48:48 +01:00 committed by GitHub
parent ccdd35b354
commit b349632a82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,6 +41,8 @@ And then execute it with:
result = schema.execute('THE QUERY', middleware=[AuthorizationMiddleware()]) result = schema.execute('THE QUERY', middleware=[AuthorizationMiddleware()])
If the ``middleware`` argument includes multiple middlewares,
these middlewares will be executed bottom-up, i.e. from last to first.
Functional example Functional example
------------------ ------------------