-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add logs for queries and mutations #732
Comments
I think this should be implemented logging the query source right before Line 511 in 5760b06
|
But what should be logged? I.e. I send multiple named queries like
Will both queries be logged separately? Will it log the query name or the actual query? |
If you check in the actual code, it's just the source that is sent by the user before parsing it. |
I have created a plugin for this issue: |
Could you add a link in the docs? |
When a fastify + mercurius application receives a request with a query or a mutation, only the original fastify http request is logged.
Unfortunately this is not very useful as everything will be logged as a
POST /graphql
.It would be great if mercurius could instead:
I guess what I'm saying is that it would be great to have some mercurius logging that works the way fastify logging works.
I understand this is feature request that will need some thinking / designing. Let me know if I can help.
The text was updated successfully, but these errors were encountered: