@graphql-tools/documents
Functions
Functions
printExecutableGraphQLDocument
▸ printExecutableGraphQLDocument(document
): string
Print an executable document node definition in a stable way. All the nodes are sorted by name and the white space is reduced.
Parameters
Name | Type |
---|---|
document | DocumentNode |
Returns
string
Defined in
packages/documents/src/print-executable-graphql-document.ts:9
sortExecutableDocument
▸ sortExecutableDocument(document
): DocumentNode
Sort an executable GraphQL document.
Parameters
Name | Type |
---|---|
document | DocumentNode |
Returns
DocumentNode