DataLoadedFunction

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

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

Constructors

DataLoadedFunction
Link copied to clipboard
fun <T, K, R> 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
Link copied to clipboard
open override val accessRule: (T?, Context) -> Exception?? = null
deprecationReason
Link copied to clipboard
open override val deprecationReason: String? = null
description
Link copied to clipboard
open override val description: String? = null
inputValues
Link copied to clipboard
val inputValues: List<InputValueDef<*>>
isDeprecated
Link copied to clipboard
open override val isDeprecated: Boolean = false
loader
Link copied to clipboard
val loader: DataLoaderFactory<K, R>
name
Link copied to clipboard
open override val name: String
prepare
Link copied to clipboard
val prepare: FunctionWrapper<K>
returnType
Link copied to clipboard
val returnType: KType