BaseFieldExecutionContext

Base ExecutionContext interface for mutation and non-mutation field resolvers

Inheritors

Properties

Link copied to clipboard
abstract val arguments: A

The value of any A arguments that were provided by the caller of this resolver. If this field does not take arguments, this is Arguments.NoArguments.

Link copied to clipboard
abstract val queryValue: Q

A value of Q, with any (and only) selections from viaduct.api.Resolver.queryValueFragment populated. Attempting to access fields not declared in viaduct.api.Resolver.queryValueFragment will throw a runtime exception.

Functions

Link copied to clipboard
abstract suspend fun getQueryValue(): Q

Returns a synchronously-accessible version of queryValue where all selections have been eagerly resolved.