graphql-tools-monorepo / utils/src / SelectionSetBuilder
Class: SelectionSetBuilder
utils/src.SelectionSetBuilder
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new SelectionSetBuilder(): SelectionSetBuilder
Returns
Defined in
packages/utils/src/SelectionSetBuilder.ts:8
Properties
fieldNodeMap
• fieldNodeMap: Map<string, FieldNode>
Defined in
packages/utils/src/SelectionSetBuilder.ts:4
fieldSelections
• fieldSelections: Map<string, SelectionSetBuilder>
Defined in
packages/utils/src/SelectionSetBuilder.ts:5
fragmentSpreads
• fragmentSpreads: Set<string>
Defined in
packages/utils/src/SelectionSetBuilder.ts:6
inlineFragments
• inlineFragments: Map<string, SelectionSetBuilder>
Defined in
packages/utils/src/SelectionSetBuilder.ts:7
Methods
addSelection
▸ addSelection(selection): void
Parameters
| Name | Type |
|---|---|
selection | SelectionNode |
Returns
void
Defined in
packages/utils/src/SelectionSetBuilder.ts:9
getSelectionSet
▸ getSelectionSet(): SelectionSetNode
Returns
SelectionSetNode
Defined in
packages/utils/src/SelectionSetBuilder.ts:63
getSize
▸ getSize(): number
Returns
number