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