From b349632a826a1054c17a3aa9ae2f9689776c6e9e Mon Sep 17 00:00:00 2001 From: Rens Groothuijsen Date: Tue, 15 Nov 2022 08:48:48 +0100 Subject: [PATCH] Clarify execution order in middleware docs (#1475) --- docs/execution/middleware.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/execution/middleware.rst b/docs/execution/middleware.rst index c0a8c792..3d086f3e 100644 --- a/docs/execution/middleware.rst +++ b/docs/execution/middleware.rst @@ -41,6 +41,8 @@ And then execute it with: 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 ------------------