Modifier and Type | Method and Description |
---|---|
static GraphqlErrorBuilder |
GraphqlErrorBuilder.newError(DataFetchingEnvironment dataFetchingEnvironment)
This will set up the
GraphQLError.getLocations() and GraphQLError.getPath() for you from the
fetching environment. |
Modifier and Type | Method and Description |
---|---|
CacheControl |
CacheControl.hint(DataFetchingEnvironment dataFetchingEnvironment,
CacheControl.Scope scope)
This creates a cache control hint for the specified field being fetched with a specified scope
|
CacheControl |
CacheControl.hint(DataFetchingEnvironment dataFetchingEnvironment,
Integer maxAge)
This creates a cache control hint for the specified field being fetched with a PUBLIC scope
|
CacheControl |
CacheControl.hint(DataFetchingEnvironment dataFetchingEnvironment,
Integer maxAge,
CacheControl.Scope scope)
This creates a cache control hint for the specified field being fetched
|
Modifier and Type | Method and Description |
---|---|
DataFetchingEnvironment |
DataFetcherExceptionHandlerParameters.getDataFetchingEnvironment() |
Modifier and Type | Method and Description |
---|---|
DataFetcherExceptionHandlerParameters.Builder |
DataFetcherExceptionHandlerParameters.Builder.dataFetchingEnvironment(DataFetchingEnvironment dataFetchingEnvironment) |
Modifier and Type | Method and Description |
---|---|
CompletableFuture<List<Object>> |
UnbatchedDataFetcher.get(DataFetchingEnvironment environment)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
DataFetchingEnvironment |
InstrumentationFieldFetchParameters.getEnvironment() |
Constructor and Description |
---|
InstrumentationFieldFetchParameters(ExecutionContext getExecutionContext,
GraphQLFieldDefinition fieldDef,
DataFetchingEnvironment environment,
ExecutionStrategyParameters executionStrategyParameters,
boolean trivialDataFetcher) |
Modifier and Type | Method and Description |
---|---|
TracingSupport.TracingContext |
TracingSupport.beginField(DataFetchingEnvironment dataFetchingEnvironment,
boolean trivialDataFetcher)
This should be called to start the trace of a field, with
TracingSupport.TracingContext.onEnd() being called to
end the call. |
Modifier and Type | Method and Description |
---|---|
Connection<T> |
SimpleListConnection.get(DataFetchingEnvironment environment) |
Modifier and Type | Class and Description |
---|---|
class |
DataFetchingEnvironmentImpl |
Modifier and Type | Method and Description |
---|---|
DataFetchingEnvironment |
DataFetchingEnvironmentImpl.Builder.build() |
Modifier and Type | Method and Description |
---|---|
Object |
StaticDataFetcher.get(DataFetchingEnvironment environment) |
T |
PropertyDataFetcher.get(DataFetchingEnvironment environment) |
T |
DataFetcher.get(DataFetchingEnvironment environment)
This is called by the graphql engine to fetch the value.
|
CompletableFuture<T> |
AsyncDataFetcher.get(DataFetchingEnvironment environment) |
static DataFetchingEnvironmentImpl.Builder |
DataFetchingEnvironmentImpl.newDataFetchingEnvironment(DataFetchingEnvironment environment) |
Modifier and Type | Method and Description |
---|---|
static DataFetcher |
DataFetcherFactories.wrapDataFetcher(DataFetcher delegateDataFetcher,
BiFunction<DataFetchingEnvironment,Object,Object> mapFunction)
This helper function allows you to wrap an existing data fetcher and map the value once it completes.
|
Copyright © 2019. All rights reserved.