public class KotlinDataFetcher
Simple DataFetcher that invokes function on the target object.
Constructor and Description |
---|
KotlinDataFetcher(java.lang.Object target,
kotlin.reflect.KFunction<?> fn,
java.util.Map<java.lang.String,com.expedia.graphql.schema.Parameter> args,
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 KotlinDataFetcher(java.lang.Object target, kotlin.reflect.KFunction<?> fn, java.util.Map<java.lang.String,com.expedia.graphql.schema.Parameter> args, DataFetcherExecutionPredicate executionPredicate)
Simple DataFetcher that invokes function on the target object.
target
- The target object that performs the data fetchingfn
- The Kotlin function being invokedargs
- The GraphQL arguments passed to the data fetchertarget
- The target object that performs the data fetchingfn
- The Kotlin function being invokedargs
- The GraphQL arguments passed to the data fetcher