graphene icon indicating copy to clipboard operation
graphene copied to clipboard

Mention the order in which middlewares are executed in the docs

Open RJ722 opened this issue 4 years ago • 0 comments

Is your feature request related to a problem? Please describe.

I was very surprised to find that graphene-python doesn't follow the same order for the execution of the middlewares, as django:

During the request phase, before calling the view, Django applies middleware in the order it’s defined in MIDDLEWARE, top-down.

For graphene, it goes bottom up.

Describe the solution you'd like To document this behavior.

Additional context I confirmed this order by printing to stdout from the resolve method of each middleware. It was opposite of the order in which I had specified them.

RJ722 avatar Oct 26 '21 09:10 RJ722