Package | Description |
---|---|
graphql.execution | |
graphql.execution.batched | |
graphql.execution.instrumentation | |
graphql.execution.instrumentation.fieldvalidation | |
graphql.execution.instrumentation.parameters | |
graphql.execution.nextgen |
WARNING: All code in this package is a work in progress for a new execution engine.
|
graphql.schema |
Modifier and Type | Method and Description |
---|---|
ExecutionContext |
ExecutionContextBuilder.build() |
ExecutionContext |
ExecutionContext.transform(Consumer<ExecutionContextBuilder> builderConsumer)
This helps you transform the current ExecutionContext object into another one by starting a builder with all
the current values and allows you to transform it how you want.
|
Modifier and Type | Method and Description |
---|---|
protected FieldValueInfo |
ExecutionStrategy.completeField(ExecutionContext executionContext,
ExecutionStrategyParameters parameters,
FetchedValue fetchedValue)
Called to complete a field based on the type of the field.
|
protected FieldValueInfo |
ExecutionStrategy.completeValue(ExecutionContext executionContext,
ExecutionStrategyParameters parameters)
Called to complete a value for a field based on the type of the field.
|
protected CompletableFuture<ExecutionResult> |
ExecutionStrategy.completeValueForEnum(ExecutionContext executionContext,
ExecutionStrategyParameters parameters,
GraphQLEnumType enumType,
Object result)
Called to turn an object into a enum value according to the
GraphQLEnumType by asking that enum type to coerce the object into a valid value |
protected FieldValueInfo |
ExecutionStrategy.completeValueForList(ExecutionContext executionContext,
ExecutionStrategyParameters parameters,
Iterable<Object> iterableValues)
Called to complete a list of value for a field based on a list type.
|
protected FieldValueInfo |
ExecutionStrategy.completeValueForList(ExecutionContext executionContext,
ExecutionStrategyParameters parameters,
Object result)
Called to complete a list of value for a field based on a list type.
|
protected CompletableFuture<ExecutionResult> |
ExecutionStrategy.completeValueForObject(ExecutionContext executionContext,
ExecutionStrategyParameters parameters,
GraphQLObjectType resolvedObjectType,
Object result)
Called to turn an java object value into an graphql object value
|
protected CompletableFuture<ExecutionResult> |
ExecutionStrategy.completeValueForScalar(ExecutionContext executionContext,
ExecutionStrategyParameters parameters,
GraphQLScalarType scalarType,
Object result)
Called to turn an object into a scalar value according to the
GraphQLScalarType by asking that scalar type to coerce the object
into a valid value |
protected ExecutionStepInfo |
ExecutionStrategy.createExecutionStepInfo(ExecutionContext executionContext,
ExecutionStrategyParameters parameters,
GraphQLFieldDefinition fieldDefinition,
GraphQLObjectType fieldContainer)
Builds the type info hierarchy for the current field
|
CompletableFuture<ExecutionResult> |
SubscriptionExecutionStrategy.execute(ExecutionContext executionContext,
ExecutionStrategyParameters parameters) |
CompletableFuture<ExecutionResult> |
ExecutorServiceExecutionStrategy.execute(ExecutionContext executionContext,
ExecutionStrategyParameters parameters)
Deprecated.
|
abstract CompletableFuture<ExecutionResult> |
ExecutionStrategy.execute(ExecutionContext executionContext,
ExecutionStrategyParameters parameters)
This is the entry point to an execution strategy.
|
CompletableFuture<ExecutionResult> |
AsyncSerialExecutionStrategy.execute(ExecutionContext executionContext,
ExecutionStrategyParameters parameters) |
CompletableFuture<ExecutionResult> |
AsyncExecutionStrategy.execute(ExecutionContext executionContext,
ExecutionStrategyParameters parameters) |
protected CompletableFuture<FetchedValue> |
ExecutionStrategy.fetchField(ExecutionContext executionContext,
ExecutionStrategyParameters parameters)
Called to fetch a value for a field from the
DataFetcher associated with the field
GraphQLFieldDefinition . |
protected GraphQLFieldDefinition |
ExecutionStrategy.getFieldDef(ExecutionContext executionContext,
ExecutionStrategyParameters parameters,
Field field)
Called to discover the field definition give the current parameters and the AST
Field |
protected ExecutionResult |
ExecutionStrategy.handleNonNullException(ExecutionContext executionContext,
CompletableFuture<ExecutionResult> result,
Throwable e) |
protected BiConsumer<List<ExecutionResult>,Throwable> |
AbstractAsyncExecutionStrategy.handleResults(ExecutionContext executionContext,
List<String> fieldNames,
CompletableFuture<ExecutionResult> overallResult) |
static ExecutionContextBuilder |
ExecutionContextBuilder.newExecutionContextBuilder(ExecutionContext other)
Creates a new builder based on a previous execution context
|
ExecutionStepInfo |
ExecutionStepInfoFactory.newExecutionStepInfoForSubField(ExecutionContext executionContext,
MergedField mergedField,
ExecutionStepInfo parentInfo) |
protected CompletableFuture<ExecutionResult> |
ExecutionStrategy.resolveField(ExecutionContext executionContext,
ExecutionStrategyParameters parameters)
Called to fetch a value for a field and resolve it further in terms of the graphql query.
|
protected CompletableFuture<FieldValueInfo> |
ExecutionStrategy.resolveFieldWithInfo(ExecutionContext executionContext,
ExecutionStrategyParameters parameters)
Called to fetch a value for a field and its extra runtime info and resolve it further in terms of the graphql query.
|
protected GraphQLObjectType |
ExecutionStrategy.resolveType(ExecutionContext executionContext,
ExecutionStrategyParameters parameters,
GraphQLType fieldType) |
GraphQLObjectType |
ResolveType.resolveType(ExecutionContext executionContext,
MergedField field,
Object source,
Map<String,Object> arguments,
GraphQLType fieldType) |
protected Iterable<Object> |
ExecutionStrategy.toIterable(ExecutionContext context,
ExecutionStrategyParameters parameters,
Object result) |
Constructor and Description |
---|
NonNullableFieldValidator(ExecutionContext executionContext,
ExecutionStepInfo executionStepInfo) |
Modifier and Type | Method and Description |
---|---|
CompletableFuture<ExecutionResult> |
BatchedExecutionStrategy.execute(ExecutionContext executionContext,
ExecutionStrategyParameters parameters)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
ExecutionContext |
SimpleInstrumentation.instrumentExecutionContext(ExecutionContext executionContext,
InstrumentationExecutionParameters parameters) |
default ExecutionContext |
Instrumentation.instrumentExecutionContext(ExecutionContext executionContext,
InstrumentationExecutionParameters parameters)
This is called to instrument a
ExecutionContext before it is used to execute a query,
allowing you to adjust the base data used. |
ExecutionContext |
ChainedInstrumentation.instrumentExecutionContext(ExecutionContext executionContext,
InstrumentationExecutionParameters parameters) |
Modifier and Type | Method and Description |
---|---|
ExecutionContext |
SimpleInstrumentation.instrumentExecutionContext(ExecutionContext executionContext,
InstrumentationExecutionParameters parameters) |
default ExecutionContext |
Instrumentation.instrumentExecutionContext(ExecutionContext executionContext,
InstrumentationExecutionParameters parameters)
This is called to instrument a
ExecutionContext before it is used to execute a query,
allowing you to adjust the base data used. |
ExecutionContext |
ChainedInstrumentation.instrumentExecutionContext(ExecutionContext executionContext,
InstrumentationExecutionParameters parameters) |
Modifier and Type | Method and Description |
---|---|
ExecutionContext |
FieldValidationEnvironment.getExecutionContext() |
Modifier and Type | Method and Description |
---|---|
ExecutionContext |
InstrumentationFieldParameters.getExecutionContext() |
ExecutionContext |
InstrumentationFieldCompleteParameters.getExecutionContext() |
ExecutionContext |
InstrumentationExecutionStrategyParameters.getExecutionContext() |
ExecutionContext |
InstrumentationExecuteOperationParameters.getExecutionContext() |
Modifier and Type | Field and Description |
---|---|
ExecutionContext |
ExecutionHelper.ExecutionData.executionContext |
Modifier and Type | Method and Description |
---|---|
static DataFetchingFieldSelectionSet |
DataFetchingFieldSelectionSetImpl.newCollector(ExecutionContext executionContext,
GraphQLType fieldType,
MergedField mergedField) |
static DataFetchingEnvironmentImpl.Builder |
DataFetchingEnvironmentImpl.newDataFetchingEnvironment(ExecutionContext executionContext) |
Copyright © 2019. All rights reserved.