@groovy.transform.CompileStatic class MockDataFetchingEnvironment extends java.lang.Object implements graphql.schema.DataFetchingEnvironment
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 |
graphql.cachecontrol.CacheControl |
cacheControl |
java.lang.Object |
context |
org.dataloader.DataLoaderRegistry |
dataLoaderRegistry |
graphql.language.Document |
document |
graphql.execution.ExecutionId |
executionId |
graphql.execution.ExecutionStepInfo |
executionStepInfo |
Field |
field |
graphql.schema.GraphQLFieldDefinition |
fieldDefinition |
graphql.schema.GraphQLOutputType |
fieldType |
java.util.List<graphql.language.Field> |
fields |
java.util.Map<java.lang.String, graphql.language.FragmentDefinition> |
fragmentsByName |
graphql.schema.GraphQLSchema |
graphQLSchema |
java.lang.Object |
localContext |
java.util.Locale |
locale |
graphql.execution.MergedField |
mergedField |
graphql.language.OperationDefinition |
operationDefinition |
graphql.schema.GraphQLType |
parentType |
graphql.execution.directives.QueryDirectives |
queryDirectives |
java.lang.Object |
root |
graphql.schema.DataFetchingFieldSelectionSet |
selectionSet |
java.lang.Object |
source |
java.util.Map<java.lang.String, java.lang.Object> |
variables |
Constructor and description |
---|
MockDataFetchingEnvironment
() |
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) |
|
graphql.cachecontrol.CacheControl |
getCacheControl() |
<K, V> |
org.dataloader.DataLoader<K, V> |
getDataLoader(java.lang.String dataLoaderName) |
|
graphql.language.Document |
getDocument() |
|
graphql.GraphQLContext |
getGraphQlContext() |
|
java.lang.Object |
getLocalContext() |
|
java.util.Locale |
getLocale() |
|
graphql.execution.MergedField |
getMergedField() |
|
graphql.language.OperationDefinition |
getOperationDefinition() |
|
graphql.execution.directives.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() |
Groovy Documentation