-
Notifications
You must be signed in to change notification settings - Fork 885
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
graphql request formatting #1022
Comments
What are you using on the graphql side? have you got an example? I don't think it's possible to get the resolvers called. |
I'm using apollo server. It doesn't need to call any resolvers, just parse which resolvers the query is calling as well as the fields. I did something basic by adding the request body to the res object, but some more informative (and queryable) parsing would be cool |
I think you should develop a serializer that is apollo-specific (possibly in a different module). |
Thanks @mcollina that's a potential outcome unless someone else seeing this knows of anything that's already been made. |
If this helps, I wrote one a while ago when I made a wrapper around apollo client. It worked very well for our team: https://github.com/meltwater/mlabs-graphql/blob/master/lib/client/logging.js |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Is anyone aware or a premade graphql request context parser?
It looks like I could write something and put it in
customProps
, however if there's something written out there, or a better way to plug in gql specific parsing, I'd love to hear it.Specifically, I'm hoping to get:
The text was updated successfully, but these errors were encountered: