Interface: CallableMiddlewareOptions()<TField>

Extends

Type Parameters

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

CallableMiddlewareOptions(): MayPromise<InferOutput<InferFieldOutput<TField>>>

The function to call next in the middleware chain.

Returns

MayPromise<InferOutput<InferFieldOutput<TField>>>

Defined in

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

Properties

next()

next: () => MayPromise<InferOutput<InferFieldOutput<TField>>>

The function to call next in the middleware chain.

Returns

MayPromise<InferOutput<InferFieldOutput<TField>>>

Defined in

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


outputSilk

outputSilk: InferOutput<InferFieldOutput<TField>>

The Output Silk of the field

Inherited from

MiddlewareOptions.outputSilk

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.

Inherited from

MiddlewareOptions.parent

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

Inherited from

MiddlewareOptions.parseInput

Defined in

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


type

type: FieldOrOperationType

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

Inherited from

MiddlewareOptions.type

Defined in

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