Function
expandSelectionSet
(selectionSet: SelectionSetNode, inType: GQLType, optional: boolean)
Source from the content-addressed store, hash-verified
| 135 | } |
| 136 | |
| 137 | function expandSelectionSet(selectionSet: SelectionSetNode, inType: GQLType, optional: boolean): Selection[] { |
| 138 | return selectionSet.selections.reverse().map(s => ({ selection: s, inType, optional })); |
| 139 | } |
| 140 | |
| 141 | interface GQLSchema { |
| 142 | readonly types: { [name: string]: GQLType }; |
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…