Function: applyMiddlewares()

applyMiddlewares<TField>(middlewares, resolveFunction, payload): Promise<InferOutput<InferFieldOutput<TField>>>

Type Parameters

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

Parameters

middlewares: Middleware<FieldOrOperation<any, any, any, any>>[]

resolveFunction

payload: MiddlewarePayload<TField>

Returns

Promise<InferOutput<InferFieldOutput<TField>>>

Defined in

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