Input
Formatted
Output will appear here
Input
Formatted
Output will appear here
GraphQL Formatter
Format GraphQL schema definitions, queries, mutations, and subscriptions using Prettier WASM. Works with SDL and query documents alike.
Use Cases
- Formatting SDL schemas copied from documentation
- Standardizing query formatting in GraphQL files
Frequently Asked Questions
Does this validate the schema?
Prettier validates syntax during parsing. Invalid GraphQL will produce an error, but full semantic validation requires graphql-js.