UnionPropertyDSL

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

Properties

description
Link copied to clipboard
var description: String?
name
Link copied to clipboard
val name: String
nullable
Link copied to clipboard
var nullable: Boolean = false
returnType
Link copied to clipboard
lateinit var returnType: TypeID