graphql-rust / graphql-parser

A graphql query language and schema definition language parser and formatter for rust
Apache License 2.0
355 stars 77 forks source link

Add style option to disable block strings #71

Closed Devin-Sandhu-Vendia closed 1 year ago

Devin-Sandhu-Vendia commented 1 year ago

From the GraphQL spec Block strings do not have a single canonical printed form. https://spec.graphql.org/October2021/#sec-String-Value.Block-Strings We have a use case that requires having a canonical printed form of a GraphQL document. Adding this styling option to avoid writing our own formatter.