@groovy.transform.CompileStatic class MockDataFetchingEnvironment
A class to use to provide a mock DataFetchingEnvironment to test custom data fetchers.
Type | Name and description |
---|---|
java.util.Map<java.lang.String, java.lang.Object> |
arguments |
CacheControl |
cacheControl |
java.lang.Object |
context |
DataLoaderRegistry |
dataLoaderRegistry |
Document |
document |
ExecutionId |
executionId |
ExecutionStepInfo |
executionStepInfo |
Field |
field |
GraphQLFieldDefinition |
fieldDefinition |
GraphQLOutputType |
fieldType |
java.util.List<Field> |
fields |
java.util.Map<java.lang.String, FragmentDefinition> |
fragmentsByName |
GraphQLSchema |
graphQLSchema |
java.lang.Object |
localContext |
java.util.Locale |
locale |
MergedField |
mergedField |
OperationDefinition |
operationDefinition |
GraphQLType |
parentType |
QueryDirectives |
queryDirectives |
java.lang.Object |
root |
DataFetchingFieldSelectionSet |
selectionSet |
java.lang.Object |
source |
java.util.Map<java.lang.String, java.lang.Object> |
variables |
Type Params | Return Type | Name and description |
---|---|---|
|
boolean |
containsArgument(java.lang.String name) |
|
java.lang.Object |
getArgument(java.lang.String name) |
|
java.lang.Object |
getArgumentOrDefault(java.lang.String name, java.lang.Object defaultValue) |
|
CacheControl |
getCacheControl() |
<K, V> |
DataLoader<K, V> |
getDataLoader(java.lang.String dataLoaderName) |
|
Document |
getDocument() |
|
java.lang.Object |
getLocalContext() |
|
java.util.Locale |
getLocale() |
|
MergedField |
getMergedField() |
|
OperationDefinition |
getOperationDefinition() |
|
QueryDirectives |
getQueryDirectives() |
|
java.util.Map<java.lang.String, java.lang.Object> |
getVariables() |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |