kgraphql / com.apurebase.kgraphql.schema.model / FunctionWrapper / ArityFive

ArityFive

class ArityFive<T, R, E, W, Q, A> : Base<T>

Constructors

<init>

ArityFive(implementation: suspend (R, E, W, Q, A) -> T, hasReceiver: Boolean)

Properties

hasReceiver

denotes whether function is called with receiver argument. Receiver argument in GraphQL is somewhat similar to kotlin receivers: its value is passed by framework, usually it is parent of function property with FunctionWrapper Receiver argument is omitted in schema, and cannot be stated in query document.

val hasReceiver: Boolean

implementation

val implementation: suspend (R, E, W, Q, A) -> T

kFunction

val kFunction: KFunction<T>

Functions

arity

fun arity(): Int

invoke

suspend fun invoke(args: List<Any?>, subscriptionArgs: List<String>, objectWriter: ObjectWriter): T?
suspend fun invoke(vararg args: Any?): T?

subscribe

fun subscribe(subscription: String, subscriber: Subscriber): Unit

unsubscribe

fun unsubscribe(subscription: String): Unit