FieldExecutionContext

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 objectValue: T

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

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 fun selections(): SelectionSet<O>

The SelectionSet for O that the caller provided. If this field does not have a selection set (i.e. it has a scalar or enum type), this returns SelectionSet.NoSelections.