Interface: ResolverPayload<TContext, TField>

Detailed payload of the current resolver

Type Parameters

TContext extends object = object

TField extends FieldOrOperation<any, any, any, any> = FieldOrOperation<any, any, any, any>

Properties

args

readonly args: Record<string, any>

The arguments provided to the field in the GraphQL query.

Defined in

packages/core/src/utils/context.ts:25


context

readonly context: TContext

The resolved value of the field, or an error.

Defined in

packages/core/src/utils/context.ts:29


field

readonly field: TField

The field that is being resolved.

Defined in

packages/core/src/utils/context.ts:38


info

readonly info: GraphQLResolveInfo

A custom object each resolver can read from/write to.

Defined in

packages/core/src/utils/context.ts:33


root

readonly root: any

The previous object, which for a field on the root Query type is often not used.

Defined in

packages/core/src/utils/context.ts:21