Interface: MiddlewarePayload<TField>

Type Parameters

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

Properties

outputSilk

outputSilk: InferOutput<InferFieldOutput<TField>>

The Output Silk of the field

Defined in

packages/core/src/utils/middleware.ts:15


parent

parent: TField extends FieldOrOperation<TParent, any, any, any> ? TParent extends undefined ? undefined : InferOutput<NonNullable<TParent>> : never

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

Defined in

packages/core/src/utils/middleware.ts:18


parseInput

parseInput: TField extends FieldOrOperation<any, any, TInput, any> ? CallableInputParser<TInput> : undefined

A function to parse the input of the field

Defined in

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


type

type: FieldOrOperationType

The type of the field: query, mutation, subscription or field

Defined in

packages/core/src/utils/middleware.ts:30