public class DataFetchingFieldSelectionSetImpl extends java.lang.Object implements DataFetchingFieldSelectionSet
| Constructor and Description |
|---|
DataFetchingFieldSelectionSetImpl(MergedField parentFields,
GraphQLFieldsContainer parentFieldType,
GraphQLSchema graphQLSchema,
java.util.Map<java.lang.String,java.lang.Object> variables,
java.util.Map<java.lang.String,FragmentDefinition> fragmentsByName) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(java.lang.String fieldGlobPattern)
This will return true if the field selection set matches a specified "glob" pattern matching ie
the glob pattern matching supported by
FileSystem.getPathMatcher(java.lang.String). |
boolean |
containsAllOf(java.lang.String fieldGlobPattern,
java.lang.String... fieldGlobPatterns)
This will return true if the field selection set matches all of the specified "glob" pattern matches ie
the glob pattern matching supported by
FileSystem.getPathMatcher(java.lang.String). |
boolean |
containsAnyOf(java.lang.String fieldGlobPattern,
java.lang.String... fieldGlobPatterns)
This will return true if the field selection set matches any of the specified "glob" pattern matches ie
the glob pattern matching supported by
FileSystem.getPathMatcher(java.lang.String). |
MergedSelectionSet |
get() |
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> |
getArguments() |
java.util.Map<java.lang.String,GraphQLFieldDefinition> |
getDefinitions() |
SelectedField |
getField(java.lang.String fqFieldName)
This will return a selected field using the fully qualified field name.
|
java.util.List<SelectedField> |
getFields()
This will return all selected fields.
|
java.util.List<SelectedField> |
getFields(java.lang.String fieldGlobPattern)
This will return a list of selected fields that match a specified "glob" pattern matching ie
the glob pattern matching supported by
FileSystem.getPathMatcher(java.lang.String). |
static DataFetchingFieldSelectionSet |
newCollector(ExecutionContext executionContext,
GraphQLType fieldType,
MergedField mergedField) |
public DataFetchingFieldSelectionSetImpl(MergedField parentFields, GraphQLFieldsContainer parentFieldType, GraphQLSchema graphQLSchema, java.util.Map<java.lang.String,java.lang.Object> variables, java.util.Map<java.lang.String,FragmentDefinition> fragmentsByName)
public static DataFetchingFieldSelectionSet newCollector(ExecutionContext executionContext, GraphQLType fieldType, MergedField mergedField)
public MergedSelectionSet get()
get in interface DataFetchingFieldSelectionSetget in interface java.util.function.Supplier<MergedSelectionSet>public java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> getArguments()
getArguments in interface DataFetchingFieldSelectionSetpublic java.util.Map<java.lang.String,GraphQLFieldDefinition> getDefinitions()
getDefinitions in interface DataFetchingFieldSelectionSetGraphQLFieldDefinitions for each field in the selection setpublic boolean contains(java.lang.String fieldGlobPattern)
DataFetchingFieldSelectionSetFileSystem.getPathMatcher(java.lang.String).
This will allow you to use '*', '**' and '?' as special matching characters such that "invoice/customer*" would
match an invoice field with child fields that start with 'customer'.contains in interface DataFetchingFieldSelectionSetfieldGlobPattern - the glob pattern to match fields againstFileSystem.getPathMatcher(String)public boolean containsAnyOf(java.lang.String fieldGlobPattern,
java.lang.String... fieldGlobPatterns)
DataFetchingFieldSelectionSetFileSystem.getPathMatcher(java.lang.String).
This will allow you to use '*', '**' and '?' as special matching characters such that "invoice/customer*" would
match an invoice field with child fields that start with 'customer'.containsAnyOf in interface DataFetchingFieldSelectionSetfieldGlobPattern - the glob pattern to match fields againstfieldGlobPatterns - optionally more glob pattern to match fields againstFileSystem.getPathMatcher(String)public boolean containsAllOf(java.lang.String fieldGlobPattern,
java.lang.String... fieldGlobPatterns)
DataFetchingFieldSelectionSetFileSystem.getPathMatcher(java.lang.String).
This will allow you to use '*', '**' and '?' as special matching characters such that "invoice/customer*" would
match an invoice field with child fields that start with 'customer'.containsAllOf in interface DataFetchingFieldSelectionSetfieldGlobPattern - the glob pattern to match fields againstfieldGlobPatterns - optionally more glob pattern to match fields againstFileSystem.getPathMatcher(String)public SelectedField getField(java.lang.String fqFieldName)
DataFetchingFieldSelectionSetgetField in interface DataFetchingFieldSelectionSetfqFieldName - the fully qualified name that is contained in the map from DataFetchingFieldSelectionSet.get()public java.util.List<SelectedField> getFields(java.lang.String fieldGlobPattern)
DataFetchingFieldSelectionSetFileSystem.getPathMatcher(java.lang.String).
This will allow you to use '*', '**' and '?' as special matching characters such that "invoice/customer*" would
match an invoice field with child fields that start with 'customer'.
The fields are guaranteed to be in pre-order as they appear in the query.getFields in interface DataFetchingFieldSelectionSetfieldGlobPattern - the glob pattern to match fields againstpublic java.util.List<SelectedField> getFields()
DataFetchingFieldSelectionSetgetFields in interface DataFetchingFieldSelectionSet