kgraphql / com.apurebase.kgraphql.schema.model / PropertyDef / DataLoadedFunction

DataLoadedFunction

open class DataLoadedFunction<T, K, R> : PropertyDef<T>

T -> The Parent Type K -> The Key that'll be passed to the dataLoader R -> The return type

Constructors

<init>

T -> The Parent Type K -> The Key that'll be passed to the dataLoader R -> The return type

DataLoadedFunction(name: String, loader: DataLoaderFactory<K, R>, prepare: FunctionWrapper<K>, returnType: KType, description: String? = null, isDeprecated: Boolean = false, deprecationReason: String? = null, accessRule: ((T?, Context) -> Exception?)? = null, inputValues: List<InputValueDef<*>> = emptyList())

Properties

accessRule

open val accessRule: ((T?, Context) -> Exception?)?

deprecationReason

open val deprecationReason: String?

description

open val description: String?

inputValues

val inputValues: List<InputValueDef<*>>

isDeprecated

open val isDeprecated: Boolean

loader

val loader: DataLoaderFactory<K, R>

name

open val name: String

prepare

val prepare: FunctionWrapper<K>

returnType

val returnType: KType