warrenday / graphql-network-inspector

A better network inspector for viewing and debugging GraphQL requests.
MIT License
485 stars 47 forks source link

Feature request: multi-line formatting for inputs #31

Closed rocketraman closed 2 years ago

rocketraman commented 3 years ago

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

warrenday commented 2 years ago

I think we can add line folding as an option/switch to fit the preference of all users. 👌

rocketraman commented 2 years ago

FYI: Prettier formats GraphQL very nicely, including inputs, if you wanted to use that. Several other GraphQL tools I use are moving to using prettier for formatting, for exactly this reason. Example: https://github.com/Kong/insomnia/issues/3242.