public class ResolutionEnvironment extends Object
| Modifier and Type | Field and Description |
|---|---|
Map<String,Object> |
arguments |
Object |
context |
graphql.schema.DataFetchingEnvironment |
dataFetchingEnvironment |
List<graphql.language.Field> |
fields |
graphql.schema.GraphQLOutputType |
fieldType |
GlobalEnvironment |
globalEnvironment |
graphql.schema.GraphQLSchema |
graphQLSchema |
graphql.schema.GraphQLType |
parentType |
Resolver |
resolver |
Object |
rootContext |
ValueMapper |
valueMapper |
| Constructor and Description |
|---|
ResolutionEnvironment(Resolver resolver,
graphql.schema.DataFetchingEnvironment env,
ValueMapper valueMapper,
GlobalEnvironment globalEnvironment,
ConverterRegistry converters,
io.leangen.graphql.execution.DerivedTypeRegistry derivedTypes) |
| Modifier and Type | Method and Description |
|---|---|
<T,S> S |
convertOutput(T output,
AnnotatedType type) |
List<AnnotatedType> |
getDerived(AnnotatedType type) |
AnnotatedType |
getDerived(AnnotatedType type,
int index) |
Directives |
getDirectives() |
Directives |
getDirectives(graphql.execution.ExecutionStepInfo step) |
Object |
getInputValue(Object input,
OperationArgument argument) |
public final Object context
public final Object rootContext
public final Resolver resolver
public final ValueMapper valueMapper
public final GlobalEnvironment globalEnvironment
public final List<graphql.language.Field> fields
public final graphql.schema.GraphQLOutputType fieldType
public final graphql.schema.GraphQLType parentType
public final graphql.schema.GraphQLSchema graphQLSchema
public final graphql.schema.DataFetchingEnvironment dataFetchingEnvironment
public ResolutionEnvironment(Resolver resolver, graphql.schema.DataFetchingEnvironment env, ValueMapper valueMapper, GlobalEnvironment globalEnvironment, ConverterRegistry converters, io.leangen.graphql.execution.DerivedTypeRegistry derivedTypes)
public <T,S> S convertOutput(T output,
AnnotatedType type)
public AnnotatedType getDerived(AnnotatedType type, int index)
public List<AnnotatedType> getDerived(AnnotatedType type)
public Object getInputValue(Object input, OperationArgument argument)
public Directives getDirectives(graphql.execution.ExecutionStepInfo step)
public Directives getDirectives()
Copyright © 2016–2019. All rights reserved.