graphene
graphene copied to clipboard
Mention the order in which middlewares are executed in the docs
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.