DocumentationAPI ReferencePackagesdocuments

@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

NameType
documentDocumentNode

Returns

string

Defined in

packages/documents/src/print-executable-graphql-document.ts:9


sortExecutableDocument

sortExecutableDocument(document): DocumentNode

Sort an executable GraphQL document.

Parameters

NameType
documentDocumentNode

Returns

DocumentNode

Defined in

packages/documents/src/sort-executable-document.ts:7