How to use GraphQL Formatter
- Paste your code. The formatter engine loads in a moment the first time.
- Adjust the options if you need to.
- Copy the formatted result.
About GraphQL Formatter
GraphQL queries grow fast. A query with a few nested selections already spans a dozen lines, and when it is copied from a network log it arrives on one. This formatter puts each field on its own line and indents selections under their parent.
It handles queries, mutations, subscriptions, fragments and schema definitions (SDL). Comments are kept.