enkot/querio

Prettify does not handle long inputs

Closed this issue · 0 comments

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.