PropertyDSL

class PropertyDSL<T : Any, R>(name: String, block: PropertyDSL<T, 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?)
resolver
Link copied to clipboard
fun resolver(function: suspend (T) -> R): ResolverDSL
fun <E> resolver(function: suspend (T, E) -> R): ResolverDSL
fun <E, W> resolver(function: suspend (T, E, W) -> R): ResolverDSL
fun <E, W, Q> resolver(function: suspend (T, E, W, Q) -> R): ResolverDSL
fun <E, W, Q, A> resolver(function: suspend (T, E, W, Q, A) -> R): ResolverDSL
fun <E, W, Q, A, S> resolver(function: suspend (T, E, W, Q, A, S) -> R): ResolverDSL
setReturnType
Link copied to clipboard
open override fun setReturnType(type: KType)
toKQLProperty
Link copied to clipboard
fun toKQLProperty(): PropertyDef.Function<T, R>

Properties

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