-
Notifications
You must be signed in to change notification settings - Fork 25
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
Display GraphQL query as plain string #28
Comments
I’d be happy to take a PR that implements that however not sure it would
overlap too much with functionality present in other tools (Apollo DevTools
comes to mind). Usually redux-like loggers do not go too far into
formatting custom objects.
…--
Best Regards,
Adrian Perez
https://adrianperez.codes
On June 27, 2018 at 10:11:27 AM, Philipp Jardas ***@***.***) wrote:
- apollo-link-logger version: 1.2.0
Hi folks, first of all, thanks for this cool tool!
I was wondering, would it be possible to render the AST query back to a
simple string? It's really cumbersome to navigate through the tree nodes of
the compiled query.
I'd be happy to work on a fix and submit a PR if this feature would be
welcome.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#28>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AAIIvAThNoKSEpIXUiu8RtBNp_i12jKeks5uAz4vgaJpZM4U5PuP>
.
|
@phjardas have you done any work on this? I would be interested in something similar and could be willing to contribute to the PR. |
@div-dog I haven't done anything in this regard because I'm not using this library anymore but the DevTools instead. Feel free to contribute! |
Looks like the plain query string can be found in the INIT operation object in the logs with a bit of digging. It's in |
apollo-link-logger
version: 1.2.0Hi folks, first of all, thanks for this cool tool!
I was wondering, would it be possible to render the AST query back to a simple string? It's really cumbersome to navigate through the tree nodes of the compiled query.
I'd be happy to work on a fix and submit a PR if this feature would be welcome.
The text was updated successfully, but these errors were encountered: