DataLoaderPropertyDSL

class DataLoaderPropertyDSL<T, K, R>(name: String, returnType: KType, block: DataLoaderPropertyDSL<T, K, R>.() -> Unit) : LimitedAccessItemDSL<T> , ResolverDSL.Target

Functions

accessRule
Link copied to clipboard
fun accessRule(rule: (T, Context) -> Exception?)
addInputValues
Link copied to clipboard
open override fun addInputValues(inputValues: Collection<InputValueDef<*>>)
deprecate
Link copied to clipboard
infix fun deprecate(reason: String?)
loader
Link copied to clipboard
fun loader(block: BatchLoader<K, R>)
prepare
Link copied to clipboard
fun prepare(block: suspend (T) -> K)
fun <E> prepare(block: suspend (T, E) -> K)
fun <E, W> prepare(block: suspend (T, E, W) -> K)
fun <E, W, Q> prepare(block: suspend (T, E, W, Q) -> K)
fun <E, W, Q, A> prepare(block: suspend (T, E, W, Q, A) -> K)
fun <E, W, Q, A, S> prepare(block: suspend (T, E, W, Q, A, S) -> K)
fun <E, W, Q, A, S, B> prepare(block: suspend (T, E, W, Q, A, S, B) -> K)
fun <E, W, Q, A, S, B, U> prepare(block: suspend (T, E, W, Q, A, S, B, U) -> K)
fun <E, W, Q, A, S, B, U, C> prepare(block: suspend (T, E, W, Q, A, S, B, U, C) -> K)
setReturnType
Link copied to clipboard
open override fun setReturnType(type: KType)
toKQLProperty
Link copied to clipboard
fun toKQLProperty(): PropertyDef.DataLoadedFunction<T, K, R>

Properties

description
Link copied to clipboard
var description: String?
name
Link copied to clipboard
val name: String
returnType
Link copied to clipboard
val returnType: KType