Schema directives are executed after middleware #565
Unanswered
simplecommerce
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I noticed that my directives are being executed after my middlewares.
I created a custom directive that allow me to define values in my schema.
I wanted to pass that information to a custom middleware in order to alter the output or do some extra logic to it.
But my directive values were never passed and I saw that it was passed after.
In my code, I apply my directives before I call applyMiddleware on my schema.
I noticed that if I do my schema transformer logic after the applyMiddleware, they will be executed before the actual middlewares.
Is this normal behavior?
Is there a way to control this a part from the way I just mentioned?
Beta Was this translation helpful? Give feedback.
All reactions