public class DataFetchingFieldSelectionSetImpl extends java.lang.Object implements DataFetchingFieldSelectionSet
| Constructor and Description |
|---|
DataFetchingFieldSelectionSetImpl(java.util.List<Field> 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). |
java.util.Map<java.lang.String,java.util.List<Field>> |
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,
java.util.List<Field> fields) |
public DataFetchingFieldSelectionSetImpl(java.util.List<Field> 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, java.util.List<Field> fields)
public java.util.Map<java.lang.String,java.util.List<Field>> get()
get in interface DataFetchingFieldSelectionSetget in interface java.util.function.Supplier<java.util.Map<java.lang.String,java.util.List<Field>>>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 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'.getFields in interface DataFetchingFieldSelectionSetfieldGlobPattern - the glob pattern to match fields againstpublic java.util.List<SelectedField> getFields()
DataFetchingFieldSelectionSetgetFields in interface DataFetchingFieldSelectionSet