MCPcopy Create free account
hub / github.com/ardatan/graphql-tools / Document

Function Document

packages/documents/src/sort-executable-document.ts:12–17  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

10 const ignoredFragments = new Set<string>();
11 return visit(document, {
12 Document(node) {
13 return {
14 ...node,
15 definitions: sortExecutableNodes(node.definitions),
16 };
17 },
18 OperationDefinition(node) {
19 if (node.operation === 'mutation') {
20 ignoredNodes.add(node.selectionSet);

Callers

nothing calls this directly

Calls 1

sortExecutableNodesFunction · 0.85

Tested by

no test coverage detected