AsyncExecutionStrategy
and DataLoaderDispatcherInstrumentation
@Deprecated public class UnbatchedDataFetcher extends java.lang.Object implements BatchedDataFetcher
Constructor and Description |
---|
UnbatchedDataFetcher(DataFetcher delegate)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.CompletableFuture<java.util.List<java.lang.Object>> |
get(DataFetchingEnvironment environment)
Deprecated.
This is called by the graphql engine to fetch the value.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isTrivialDataFetcher
public UnbatchedDataFetcher(DataFetcher delegate)
public java.util.concurrent.CompletableFuture<java.util.List<java.lang.Object>> get(DataFetchingEnvironment environment) throws java.lang.Exception
DataFetcher
DataFetchingEnvironment
is a composite
context object that tells you all you need to know about who to fetch a data value in graphql type terms.get
in interface DataFetcher
environment
- this is the data fetching environment which contains all the context you need to fetch a valueDataFetcherResult
java.lang.Exception
- to relieve the implementations from having to wrap checked exceptions. Any exception thrown
from a DataFetcher
will eventually be handled by the registered DataFetcherExceptionHandler
and the related field will have a value of null
in the result.