Modifier and Type | Interface and Description |
---|---|
interface |
TrivialDataFetcher<T>
Mark a DataFetcher as trivial:
If a data fetcher is simply mapping data from an object to a field, it can be considered a trivial data fetcher for the purposes
of tracing and so on.
|
Modifier and Type | Interface and Description |
---|---|
interface |
BatchedDataFetcher
Deprecated.
This has been deprecated in favour of using
AsyncExecutionStrategy and DataLoaderDispatcherInstrumentation |
Modifier and Type | Class and Description |
---|---|
class |
UnbatchedDataFetcher
Deprecated.
This has been deprecated in favour of using
AsyncExecutionStrategy and DataLoaderDispatcherInstrumentation |
Modifier and Type | Method and Description |
---|---|
BatchedDataFetcher |
BatchedDataFetcherFactory.create(DataFetcher supplied)
Deprecated.
|
Constructor and Description |
---|
UnbatchedDataFetcher(DataFetcher delegate)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
DataFetcher<?> |
SimpleInstrumentation.instrumentDataFetcher(DataFetcher<?> dataFetcher,
InstrumentationFieldFetchParameters parameters) |
default DataFetcher<?> |
Instrumentation.instrumentDataFetcher(DataFetcher<?> dataFetcher,
InstrumentationFieldFetchParameters parameters)
This is called to instrument a
DataFetcher just before it is used to fetch a field, allowing you
to adjust what information is passed back or record information about specific data fetches. |
DataFetcher<?> |
ChainedInstrumentation.instrumentDataFetcher(DataFetcher<?> dataFetcher,
InstrumentationFieldFetchParameters parameters) |
Modifier and Type | Method and Description |
---|---|
DataFetcher<?> |
SimpleInstrumentation.instrumentDataFetcher(DataFetcher<?> dataFetcher,
InstrumentationFieldFetchParameters parameters) |
default DataFetcher<?> |
Instrumentation.instrumentDataFetcher(DataFetcher<?> dataFetcher,
InstrumentationFieldFetchParameters parameters)
This is called to instrument a
DataFetcher just before it is used to fetch a field, allowing you
to adjust what information is passed back or record information about specific data fetches. |
DataFetcher<?> |
ChainedInstrumentation.instrumentDataFetcher(DataFetcher<?> dataFetcher,
InstrumentationFieldFetchParameters parameters) |
Modifier and Type | Method and Description |
---|---|
DataFetcher<?> |
DataLoaderDispatcherInstrumentation.instrumentDataFetcher(DataFetcher<?> dataFetcher,
InstrumentationFieldFetchParameters parameters) |
Modifier and Type | Method and Description |
---|---|
DataFetcher<?> |
DataLoaderDispatcherInstrumentation.instrumentDataFetcher(DataFetcher<?> dataFetcher,
InstrumentationFieldFetchParameters parameters) |
Modifier and Type | Field and Description |
---|---|
static DataFetcher |
Introspection.enumValuesTypesFetcher |
static DataFetcher |
Introspection.fieldsFetcher |
static DataFetcher |
Introspection.inputFieldsFetcher |
static DataFetcher |
Introspection.interfacesFetcher |
static DataFetcher |
Introspection.kindDataFetcher |
static DataFetcher |
Introspection.OfTypeFetcher |
static DataFetcher |
Introspection.possibleTypesFetcher |
static DataFetcher<Object> |
Introspection.SchemaMetaFieldDefDataFetcher |
static DataFetcher<Object> |
Introspection.TypeMetaFieldDefDataFetcher |
static DataFetcher<Object> |
Introspection.TypeNameMetaFieldDefDataFetcher |
Modifier and Type | Class and Description |
---|---|
class |
SimpleListConnection<T> |
Modifier and Type | Method and Description |
---|---|
GraphQLFieldDefinition |
Relay.mutation(String name,
String fieldName,
List<GraphQLInputObjectField> inputFields,
List<GraphQLFieldDefinition> outputFields,
DataFetcher dataFetcher) |
GraphQLFieldDefinition |
Relay.mutationWithClientMutationId(String name,
String fieldName,
List<GraphQLInputObjectField> inputFields,
List<GraphQLFieldDefinition> outputFields,
DataFetcher dataFetcher) |
GraphQLFieldDefinition |
Relay.nodeField(GraphQLInterfaceType nodeInterface,
DataFetcher nodeDataFetcher) |
Modifier and Type | Class and Description |
---|---|
class |
AsyncDataFetcher<T>
A modifier type that indicates the underlying data fetcher is run asynchronously
|
class |
PropertyDataFetcher<T>
This is the default data fetcher used in graphql-java.
|
class |
StaticDataFetcher
A
DataFetcher that always returns the same value |
Modifier and Type | Method and Description |
---|---|
DataFetcher<T> |
DataFetcherFactory.get(DataFetcherFactoryEnvironment environment)
Returns a
DataFetcher |
DataFetcher |
GraphQLCodeRegistry.getDataFetcher(GraphQLFieldsContainer parentType,
GraphQLFieldDefinition fieldDefinition)
Returns a data fetcher associated with a field within a container type
|
DataFetcher |
GraphQLCodeRegistry.Builder.getDataFetcher(GraphQLFieldsContainer parentType,
GraphQLFieldDefinition fieldDefinition)
Returns a data fetcher associated with a field within a container type
|
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.
|
Modifier and Type | Method and Description |
---|---|
static <T> AsyncDataFetcher<T> |
AsyncDataFetcher.async(DataFetcher<T> wrappedDataFetcher)
A factory method for creating asynchronous data fetchers so that when used with
static imports allows more readable code such as:
|
static <T> AsyncDataFetcher<T> |
AsyncDataFetcher.async(DataFetcher<T> wrappedDataFetcher,
Executor executor)
A factory method for creating asynchronous data fetchers and setting the
Executor they run in so that when used with static imports allows
more readable code such as: |
GraphQLFieldDefinition.Builder |
GraphQLFieldDefinition.Builder.dataFetcher(DataFetcher<?> dataFetcher)
Deprecated.
use
GraphQLCodeRegistry instead |
GraphQLCodeRegistry.Builder |
GraphQLCodeRegistry.Builder.dataFetcher(FieldCoordinates coordinates,
DataFetcher<?> dataFetcher)
Sets the data fetcher for a specific field inside a container type
|
GraphQLCodeRegistry.Builder |
GraphQLCodeRegistry.Builder.dataFetcher(GraphQLFieldsContainer parentType,
GraphQLFieldDefinition fieldDefinition,
DataFetcher<?> dataFetcher)
Sets the data fetcher for a specific field inside a container type
|
GraphQLCodeRegistry.Builder |
GraphQLCodeRegistry.Builder.dataFetcherIfAbsent(FieldCoordinates coordinates,
DataFetcher<?> dataFetcher)
Sets the data fetcher factory for a specific field inside a container type ONLY if not mapping has already been made
|
GraphQLCodeRegistry.Builder |
GraphQLCodeRegistry.Builder.systemDataFetcher(FieldCoordinates coordinates,
DataFetcher<?> dataFetcher)
Called to place system data fetchers (eg Introspection fields) into the mix
|
static <T> DataFetcherFactory<T> |
DataFetcherFactories.useDataFetcher(DataFetcher<T> dataFetcher)
Creates a
DataFetcherFactory that always returns the provided DataFetcher |
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.
|
Modifier and Type | Method and Description |
---|---|
GraphQLCodeRegistry.Builder |
GraphQLCodeRegistry.Builder.dataFetchers(String parentTypeName,
Map<String,DataFetcher> fieldDataFetchers)
This allows you you to build all the data fetchers for the fields of a container type.
|
Constructor and Description |
---|
AsyncDataFetcher(DataFetcher<T> wrappedDataFetcher) |
AsyncDataFetcher(DataFetcher<T> wrappedDataFetcher,
Executor executor) |
GraphQLFieldDefinition(String name,
String description,
GraphQLOutputType type,
DataFetcher<?> dataFetcher,
List<GraphQLArgument> arguments,
String deprecationReason)
Deprecated.
use the
GraphQLFieldDefinition.newFieldDefinition() builder pattern instead, as this constructor will be made private in a future version. |
Modifier and Type | Method and Description |
---|---|
default DataFetcher |
WiringFactory.getDataFetcher(FieldWiringEnvironment environment)
Returns a
DataFetcher given the type definition |
DataFetcher |
NoopWiringFactory.getDataFetcher(FieldWiringEnvironment environment) |
DataFetcher |
CombinedWiringFactory.getDataFetcher(FieldWiringEnvironment environment) |
DataFetcher |
TypeRuntimeWiring.getDefaultDataFetcher() |
default DataFetcher |
WiringFactory.getDefaultDataFetcher(FieldWiringEnvironment environment)
All fields need a data fetcher of some sort and this method is called to provide the data fetcher
that will be used if no specific one has been provided
|
DataFetcher |
NoopWiringFactory.getDefaultDataFetcher(FieldWiringEnvironment environment) |
DataFetcher |
EchoingWiringFactory.getDefaultDataFetcher(FieldWiringEnvironment environment) |
DataFetcher |
RuntimeWiring.getDefaultDataFetcherForType(String typeName) |
Modifier and Type | Method and Description |
---|---|
Map<String,DataFetcher> |
RuntimeWiring.getDataFetcherForType(String typeName) |
Map<String,Map<String,DataFetcher>> |
RuntimeWiring.getDataFetchers() |
Map<String,DataFetcher> |
TypeRuntimeWiring.getFieldDataFetchers() |
Modifier and Type | Method and Description |
---|---|
TypeRuntimeWiring.Builder |
TypeRuntimeWiring.Builder.dataFetcher(String fieldName,
DataFetcher dataFetcher)
Adds a data fetcher for the current type to the specified field
|
TypeRuntimeWiring.Builder |
TypeRuntimeWiring.Builder.defaultDataFetcher(DataFetcher dataFetcher)
All fields in a type need a data fetcher of some sort and this method is called to provide the default data fetcher
that will be used for this type if no specific one has been provided per field.
|
Modifier and Type | Method and Description |
---|---|
TypeRuntimeWiring.Builder |
TypeRuntimeWiring.Builder.dataFetchers(Map<String,DataFetcher> dataFetchersMap)
Adds data fetchers for the current type to the specified field
|
Copyright © 2019. All rights reserved.