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. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have query like this:
What I need is middleware which will be invoked only on query type.
So that using
graphql-fields
plugin orgraphql-fields-list
I 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.
Beta Was this translation helpful? Give feedback.
All reactions