Is there a method that gets called before any query/mutation that we can override for logging purposes? #1096
Unanswered
drewgallagher
asked this question in
Q&A
Replies: 1 comment 2 replies
-
With the latest major version, a That said, I implemented what you said but did it on the http level, via regular Laravel middlewares on the graphql http route (in |
Beta Was this translation helpful? Give feedback.
2 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.
-
Right now in our project we have the Log facade calls in every mutation/query, however this is a lot of code to maintain and refactor if needed.
We have hundreds of mutations/queries.
Is there a method built in we can override that gets called for every mutation/query, that we can add a log statement in one spot.
Something like a before() function where we could log the query/mutation that is getting called with the given request body?
This would cut our Log calls and imports from N files (based on the query/mutation count) to 1
Beta Was this translation helpful? Give feedback.
All reactions