public class TypeResolutionEnvironment
extends java.lang.Object
TypeResolver
to help with object type resolution.
See TypeResolver.getType(TypeResolutionEnvironment)
for how this is usedConstructor and Description |
---|
TypeResolutionEnvironment(java.lang.Object object,
java.util.Map<java.lang.String,java.lang.Object> arguments,
MergedField field,
GraphQLType fieldType,
GraphQLSchema schema,
java.lang.Object context) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getArguments() |
<T> T |
getContext() |
MergedField |
getField() |
GraphQLType |
getFieldType() |
<T> T |
getObject()
You will be passed the specific source object that needs to be resolve into a concrete graphql object type
|
GraphQLSchema |
getSchema() |
public TypeResolutionEnvironment(java.lang.Object object, java.util.Map<java.lang.String,java.lang.Object> arguments, MergedField field, GraphQLType fieldType, GraphQLSchema schema, java.lang.Object context)
public <T> T getObject()
T
- you decide what type it ispublic java.util.Map<java.lang.String,java.lang.Object> getArguments()
public MergedField getField()
public GraphQLType getFieldType()
GraphQLUnionType
or a
GraphQLInterfaceType
public GraphQLSchema getSchema()
public <T> T getContext()