Is there a way for me to write middleware which can detect whether a user is making a Query or a Mutation? #1819
Unanswered
caldempsey
asked this question in
Q&A
Replies: 3 comments
-
I think you can refer here: |
Beta Was this translation helpful? Give feedback.
0 replies
-
See this reference. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you friends! I will check these out! Had to move to other user stories but will report ASAP. |
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
-
What happened?
Attempted to find a method call to determine wheteher a user is making a query or mutation in the standard library to append to my fancy new Datadog middleware I hand rolled.
What did you expect?
A method call to determine whether a user is making a query or sending a mutation from OperationContext.
Minimal graphql.schema and models to reproduce
One query, one mutation, inspect midddleware library
versions
gqlgen version
? latestgo version
? latestBeta Was this translation helpful? Give feedback.
All reactions