public class ReflectionDataFetcher extends Object implements graphql.schema.DataFetcher
| Constructor and Description |
|---|
ReflectionDataFetcher(Operation operation) |
ReflectionDataFetcher(Operation operation,
Collection<DataFetcherDecorator> decorators)
We use this reflection data fetcher on operations (so Queries, Mutations and Source)
ParameterClasses: We need an Array of Classes that this operation method needs so we can use reflection to call the
method.
|
| Modifier and Type | Method and Description |
|---|---|
graphql.execution.DataFetcherResult<Object> |
get(graphql.schema.DataFetchingEnvironment dfe)
This makes the call on the method.
|
public ReflectionDataFetcher(Operation operation)
public ReflectionDataFetcher(Operation operation, Collection<DataFetcherDecorator> decorators)
operation - the operationdecorators - collection of decorators to invoke before and after fetching the datapublic graphql.execution.DataFetcherResult<Object> get(graphql.schema.DataFetchingEnvironment dfe) throws Exception
get in interface graphql.schema.DataFetcherdfe - the Data Fetching Environment from graphql-javaExceptionCopyright © 2018–2020. All rights reserved.