Type Alias: Middleware()<TField>

Middleware<TField>: (next, payload) => MayPromise<InferOutput<InferFieldOutput<TField>>>

Type Parameters

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

Parameters

next

payload: MiddlewarePayload<TField>

Returns

MayPromise<InferOutput<InferFieldOutput<TField>>>

Defined in

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