public class DataFetchingFieldSelectionSetImpl extends java.lang.Object implements DataFetchingFieldSelectionSet
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() |
static DataFetchingFieldSelectionSet |
newCollector(ExecutionContext executionContext,
GraphQLType fieldType,
java.util.List<Field> fields) |
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 DataFetchingFieldSelectionSet
get
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 DataFetchingFieldSelectionSet
public java.util.Map<java.lang.String,GraphQLFieldDefinition> getDefinitions()
getDefinitions
in interface DataFetchingFieldSelectionSet
GraphQLFieldDefinition
s for each field in the selection setpublic boolean contains(java.lang.String fieldGlobPattern)
DataFetchingFieldSelectionSet
FileSystem.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 DataFetchingFieldSelectionSet
fieldGlobPattern
- the glob pattern to match fields againstFileSystem.getPathMatcher(String)