graphql.TypeResolutionEnvironment Maven / Gradle / Ivy
The newest version!
package graphql;
import graphql.language.Field;
import graphql.schema.GraphQLSchema;
import graphql.schema.GraphQLType;
import java.util.Map;
/**
* See {@link graphql.schema.TypeResolver#getType(TypeResolutionEnvironment)} for how this is used
*/
public class TypeResolutionEnvironment {
private final Object object;
private final Map arguments;
private final Field field;
private final GraphQLType fieldType;
private final GraphQLSchema schema;
public TypeResolutionEnvironment(Object object, Map arguments, Field field, GraphQLType fieldType, GraphQLSchema schema) {
this.object = object;
this.arguments = arguments;
this.field = field;
this.fieldType = fieldType;
this.schema = schema;
}
public Object getObject() {
return object;
}
public Map getArguments() {
return arguments;
}
public Field getField() {
return field;
}
public GraphQLType getFieldType() {
return fieldType;
}
public GraphQLSchema getSchema() {
return schema;
}
}