Skip to content
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

Prettify does not handle long inputs #5

Closed
rocketraman opened this issue Oct 15, 2021 · 0 comments · Fixed by #7
Closed

Prettify does not handle long inputs #5

rocketraman opened this issue Oct 15, 2021 · 0 comments · Fixed by #7

Comments

@rocketraman
Copy link
Contributor

Its hard to read GQL requests with long inputs (certainly not uncommon with GraphQL), because the input is all on a single line. It would be great if inputs were formatted multi-line / with wrapping to make the request easier to read.

Suggestion: Prettier formats GraphQL very nicely, including inputs, if you wanted to leverage that. It also handles comments and indentation properly. Several other GraphQL tools I use are moving to using prettier for formatting, for exactly this reason. Example: Kong/insomnia#3242.

rocketraman added a commit to rocketraman/querio that referenced this issue Nov 10, 2021
@enkot enkot closed this as completed in #7 Nov 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant