MCPcopy Create free account
hub / github.com/glideapps/quicktype / hasOptionalDirectives

Function hasOptionalDirectives

src/GraphQL.ts:122–129  ·  view source on GitHub ↗
(directives?: DirectiveNode[])

Source from the content-addressed store, hash-verified

120}
121
122function hasOptionalDirectives(directives?: DirectiveNode[]): boolean {
123 if (!directives) return false;
124 for (const d of directives) {
125 const name = d.name.value;
126 if (name === "include" || name === "skip") return true;
127 }
128 return false;
129}
130
131interface Selection {
132 selection: SelectionNode;

Callers 1

GQLQueryClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…