How to access a directive in a middleware ? #893
Unanswered
pvanliefland
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
-
Hi!
I'm trying to check, in a middleware, if a field has a specific directive. For some reason, I haven't found a way to achieve that.
I tried to use
includes_directive
, usinginfo
(GraphQLResoveInfo
) and its sub-fields as the first argument, without success.The field node (
info.field_nodes[0]
) has adirectives
property, which is empty, so I can't use that either.What am I missing ? Thanks !
Beta Was this translation helpful? Give feedback.
All reactions