Repository navigation
Root middleware for Query type. #1280
Unanswered
valerii15298
asked this question in
Q&A
Replies: 1 comment
It should be executed, middlewares are executed for each resolver, both query, mutation and field resolvers. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I have query like this:
What I need is middleware which will be invoked only on query type.
So that using
graphql-fieldsplugin orgraphql-fields-listI can get list of all root fields(including fieldprojects) from current query.Is it possible? And how to do it? Maybe some different, better way to achieve it?
Thanks in advance!!!
Global middleware would be a solution but unfortunately is not executed on Query type(I tried) so I cannot use it.
All reactions