Package graphql.execution
Class FieldCollector
java.lang.Object
graphql.execution.FieldCollector
A field collector can iterate over field selection sets and build out the sub fields that have been selected,
expanding named and inline fragments as it goes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncollectFields
(FieldCollectorParameters parameters, MergedField mergedField) collectFields
(FieldCollectorParameters parameters, MergedField mergedField, boolean incrementalSupport) collectFields
(FieldCollectorParameters parameters, SelectionSet selectionSet) Given a selection set this will collect the sub-field selections and return it as a mapcollectFields
(FieldCollectorParameters parameters, SelectionSet selectionSet, boolean incrementalSupport)
-
Constructor Details
-
FieldCollector
public FieldCollector()
-
-
Method Details
-
collectFields
public MergedSelectionSet collectFields(FieldCollectorParameters parameters, MergedField mergedField) -
collectFields
public MergedSelectionSet collectFields(FieldCollectorParameters parameters, MergedField mergedField, boolean incrementalSupport) -
collectFields
public MergedSelectionSet collectFields(FieldCollectorParameters parameters, SelectionSet selectionSet) Given a selection set this will collect the sub-field selections and return it as a map- Parameters:
parameters
- the parameters to this methodselectionSet
- the selection set to collect on- Returns:
- a map of the sub field selections
-
collectFields
public MergedSelectionSet collectFields(FieldCollectorParameters parameters, SelectionSet selectionSet, boolean incrementalSupport)
-