@PublicSpi public abstract class ExecutionStrategy extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected FieldCollector |
fieldCollector |
protected ValuesResolver |
valuesResolver |
Constructor and Description |
---|
ExecutionStrategy() |
Modifier and Type | Method and Description |
---|---|
protected ExecutionResult |
completeValue(ExecutionContext executionContext,
ExecutionParameters parameters,
java.util.List<Field> fields) |
protected ExecutionResult |
completeValueForEnum(GraphQLEnumType enumType,
java.lang.Object result) |
protected ExecutionResult |
completeValueForList(ExecutionContext executionContext,
ExecutionParameters parameters,
java.util.List<Field> fields,
java.lang.Iterable<java.lang.Object> result) |
protected ExecutionResult |
completeValueForScalar(GraphQLScalarType scalarType,
java.lang.Object result) |
abstract ExecutionResult |
execute(ExecutionContext executionContext,
ExecutionParameters parameters) |
protected GraphQLFieldDefinition |
getFieldDef(GraphQLSchema schema,
GraphQLObjectType parentType,
Field field) |
protected void |
handleDataFetchingException(ExecutionContext executionContext,
GraphQLFieldDefinition fieldDef,
java.util.Map<java.lang.String,java.lang.Object> argumentValues,
java.lang.Exception e)
Handle exceptions which occur during data fetching.
|
protected ExecutionResult |
resolveField(ExecutionContext executionContext,
ExecutionParameters parameters,
java.util.List<Field> fields) |
protected GraphQLObjectType |
resolveTypeForInterface(TypeResolutionParameters params) |
protected GraphQLObjectType |
resolveTypeForUnion(TypeResolutionParameters params) |
protected final ValuesResolver valuesResolver
protected final FieldCollector fieldCollector
public abstract ExecutionResult execute(ExecutionContext executionContext, ExecutionParameters parameters) throws NonNullableFieldWasNullException
NonNullableFieldWasNullException
protected void handleDataFetchingException(ExecutionContext executionContext, GraphQLFieldDefinition fieldDef, java.util.Map<java.lang.String,java.lang.Object> argumentValues, java.lang.Exception e)
executionContext
- the execution context in playfieldDef
- the field definitionargumentValues
- the map of argumentse
- the exception that occurredprotected ExecutionResult resolveField(ExecutionContext executionContext, ExecutionParameters parameters, java.util.List<Field> fields)
protected ExecutionResult completeValue(ExecutionContext executionContext, ExecutionParameters parameters, java.util.List<Field> fields)
protected GraphQLObjectType resolveTypeForInterface(TypeResolutionParameters params)
protected GraphQLObjectType resolveTypeForUnion(TypeResolutionParameters params)
protected ExecutionResult completeValueForEnum(GraphQLEnumType enumType, java.lang.Object result)
protected ExecutionResult completeValueForScalar(GraphQLScalarType scalarType, java.lang.Object result)
protected ExecutionResult completeValueForList(ExecutionContext executionContext, ExecutionParameters parameters, java.util.List<Field> fields, java.lang.Iterable<java.lang.Object> result)
protected GraphQLFieldDefinition getFieldDef(GraphQLSchema schema, GraphQLObjectType parentType, Field field)