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

Function expandSelectionSet

src/GraphQL.ts:137–139  ·  view source on GitHub ↗
(selectionSet: SelectionSetNode, inType: GQLType, optional: boolean)

Source from the content-addressed store, hash-verified

135}
136
137function expandSelectionSet(selectionSet: SelectionSetNode, inType: GQLType, optional: boolean): Selection[] {
138 return selectionSet.selections.reverse().map(s => ({ selection: s, inType, optional }));
139}
140
141interface GQLSchema {
142 readonly types: { [name: string]: GQLType };

Callers 1

GQLQueryClass · 0.85

Calls 1

mapMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…