T
- The type of the data fetched@PublicApi public class DataFetcherResult<T> extends java.lang.Object
DataFetcher
that contains both data and errors to be relativized and
added to the final result. This is a useful when your ``DataFetcher`` retrieves data from multiple sources
or from another GraphQL resource.Constructor and Description |
---|
DataFetcherResult(T data,
java.util.List<GraphQLError> errors) |
Modifier and Type | Method and Description |
---|---|
T |
getData() |
java.util.List<GraphQLError> |
getErrors() |
public DataFetcherResult(T data, java.util.List<GraphQLError> errors)
public T getData()
public java.util.List<GraphQLError> getErrors()