Package graphql.execution
Class FieldCollector
- java.lang.Object
-
- graphql.execution.FieldCollector
-
public class FieldCollector extends java.lang.ObjectA 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 Constructor Description FieldCollector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MergedSelectionSetcollectFields(FieldCollectorParameters parameters, MergedField mergedField)MergedSelectionSetcollectFields(FieldCollectorParameters parameters, MergedField mergedField, boolean incrementalSupport)MergedSelectionSetcollectFields(FieldCollectorParameters parameters, SelectionSet selectionSet)Given a selection set this will collect the sub-field selections and return it as a mapMergedSelectionSetcollectFields(FieldCollectorParameters parameters, SelectionSet selectionSet, boolean incrementalSupport)
-
-
-
Method Detail
-
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)
-
-