Package | Description |
---|---|
graphql | |
graphql.cachecontrol | |
graphql.execution | |
graphql.execution.batched | |
graphql.execution.instrumentation.fieldvalidation |
Modifier and Type | Method and Description |
---|---|
GraphqlErrorBuilder |
GraphqlErrorBuilder.path(ExecutionPath path) |
Constructor and Description |
---|
ExceptionWhileDataFetching(ExecutionPath path,
Throwable exception,
SourceLocation sourceLocation) |
SerializationError(ExecutionPath path,
CoercingSerializeException exception) |
TypeMismatchError(ExecutionPath path,
GraphQLType expectedType) |
UnresolvedTypeError(ExecutionPath path,
ExecutionStepInfo info,
UnresolvedTypeException exception) |
Modifier and Type | Method and Description |
---|---|
CacheControl |
CacheControl.hint(ExecutionPath path,
CacheControl.Scope scope)
This creates a cache control hint for the specified path
|
CacheControl |
CacheControl.hint(ExecutionPath path,
Integer maxAge)
This creates a cache control hint for the specified path
|
CacheControl |
CacheControl.hint(ExecutionPath path,
Integer maxAge,
CacheControl.Scope scope)
This creates a cache control hint for the specified path
|
Modifier and Type | Method and Description |
---|---|
static ExecutionPath |
ExecutionPath.fromList(List<?> objects)
This will create an execution path from the list of objects
|
ExecutionPath |
ExecutionStepInfo.getPath() |
ExecutionPath |
NonNullableFieldWasNullException.getPath() |
ExecutionPath |
ExecutionStrategyParameters.getPath() |
ExecutionPath |
DataFetcherExceptionHandlerParameters.getPath() |
ExecutionPath |
ExecutionPath.getPathWithoutListEnd() |
static ExecutionPath |
ExecutionPath.parse(String pathString)
Parses an execution path from the provided path string in the format /segment1/segment2[index]/segmentN
|
static ExecutionPath |
ExecutionPath.rootPath()
All paths start from here
|
ExecutionPath |
ExecutionPath.segment(int segment)
Takes the current path and adds a new segment to it, returning a new path
|
ExecutionPath |
ExecutionPath.segment(String segment)
Takes the current path and adds a new segment to it, returning a new path
|
ExecutionPath |
ExecutionPath.sibling(String siblingField) |
Modifier and Type | Method and Description |
---|---|
void |
ExecutionContext.addError(GraphQLError error,
ExecutionPath fieldPath)
This method will only put one error per field path.
|
ExecutionStepInfo.Builder |
ExecutionStepInfo.Builder.path(ExecutionPath executionPath) |
ExecutionStrategyParameters.Builder |
ExecutionStrategyParameters.Builder.path(ExecutionPath path) |
<T> T |
NonNullableFieldValidator.validate(ExecutionPath path,
T result)
Called to check that a value is non null if the type requires it to be non null
|
Constructor and Description |
---|
AbsoluteGraphQLError(MergedField sameField,
ExecutionPath executionPath,
GraphQLError relativeError) |
NonNullableFieldWasNullException(ExecutionStepInfo executionStepInfo,
ExecutionPath path) |
Modifier and Type | Method and Description |
---|---|
ExecutionPath |
FetchedValues.getPath()
Deprecated.
|
Constructor and Description |
---|
FetchedValues(List<FetchedValue> fetchedValues,
ExecutionStepInfo executionStepInfo,
ExecutionPath path)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
ExecutionPath |
FieldAndArguments.getPath() |
Modifier and Type | Method and Description |
---|---|
Map<ExecutionPath,List<FieldAndArguments>> |
FieldValidationEnvironment.getFieldsByPath() |
Modifier and Type | Method and Description |
---|---|
SimpleFieldValidation |
SimpleFieldValidation.addRule(ExecutionPath fieldPath,
BiFunction<FieldAndArguments,FieldValidationEnvironment,Optional<GraphQLError>> rule)
Adds the rule against the field address path.
|
Copyright © 2019. All rights reserved.