public class KotlinDataFetcher
Simple DataFetcher that invokes function on the target object.
| Modifier and Type | Field and Description |
|---|---|
static com.expedia.graphql.KotlinDataFetcher.Companion |
Companion
Deprecated.
|
| Constructor and Description |
|---|
KotlinDataFetcher(java.lang.Object target,
kotlin.reflect.KFunction<?> fn,
DataFetcherExecutionPredicate executionPredicate)
Simple DataFetcher that invokes function on the target object.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
get(graphql.schema.DataFetchingEnvironment environment) |
public static com.expedia.graphql.KotlinDataFetcher.Companion Companion
public KotlinDataFetcher(java.lang.Object target,
kotlin.reflect.KFunction<?> fn,
DataFetcherExecutionPredicate executionPredicate)
Simple DataFetcher that invokes function on the target object.
target - The target object that performs the data fetchingfn - The Kotlin function being invokedexecutionPredicate - Predicate to run to map the value to a new resulttarget - The target object that performs the data fetchingfn - The Kotlin function being invokedexecutionPredicate - Predicate to run to map the value to a new result