GraphqlQuery.Format (graphql_query v0.3.7)
View SourceGraphQL document and schema formatting functionality.
Provides high-level formatting interface that delegates to the Rust-based native implementation for optimal performance. Formats GraphQL queries and schemas into a standardized, readable format.
Example:
iex> GraphqlQuery.Format.format("query { user { id name } }")
"{\n user {\n id\n name\n }\n}\n"
Summary
Functions
Formats a GraphQL document string using the AST representation. Returns the original document if parsing fails.