public class FieldCollector
extends java.lang.Object
Constructor and Description |
---|
FieldCollector() |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.util.List<Field>> |
collectFields(FieldCollectorParameters parameters,
java.util.List<Field> fields)
Given a list of fields this will collect the sub-field selections and return it as a map
|
java.util.Map<java.lang.String,java.util.List<Field>> |
collectFields(FieldCollectorParameters parameters,
SelectionSet selectionSet)
Given a selection set this will collect the sub-field selections and return it as a map
|
public java.util.Map<java.lang.String,java.util.List<Field>> collectFields(FieldCollectorParameters parameters, java.util.List<Field> fields)
parameters
- the parameters to this methodfields
- the list of fields to collect forpublic java.util.Map<java.lang.String,java.util.List<Field>> collectFields(FieldCollectorParameters parameters, SelectionSet selectionSet)
parameters
- the parameters to this methodselectionSet
- the selection set to collect on