@ProviderType
public interface SelectionSet
Mainly it keeps information about fields name that got selected.
For example:
queryName {
field1
field2 {
... on Type1 {
field3
}
}
field4
field5 {
field6
field7 {
field8
}
}
}
Would result in a mapping with corresponding SelectedField(s).
field1 would be accessible with qualified name "field1" while field3 would be accessible with qualified name "field2/Type1/field3" and field8 would be accessible with qualified name "field5/field7/field8"
Type1 would be a SelectedField with isInline() returning true
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(String qualifiedName)
Returns
true if the selection set contains the field identified by qualifiedName. |
@Nullable SelectedField |
get(String qualifiedName)
Returns the fields identified by
qualifiedName or null. |
@NotNull List<SelectedField> |
getFields()
Returns a list of the immediate fields in the selection.
|
@NotNull @NotNull List<SelectedField> getFields()
boolean contains(String qualifiedName)
true if the selection set contains the field identified by qualifiedName.qualifiedName - the qualified name of the field@Nullable @Nullable SelectedField get(String qualifiedName)
qualifiedName or null.qualifiedName - the qualified name of the fieldSelectedField for the passed qualifiedName or nullCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.