コンテンツにスキップ

Function: invokeMutatorWithNormalized()

このコンテンツはまだ日本語訳がありません。

invokeMutatorWithNormalized<S, TCtx>(name, mutator, params): Promise<{ normalizedArgs: unknown; }>

Defined in: core/src/mutators.ts:187

Same as invokeMutator but also returns the post-validation args so downstream hooks (audit log, telemetry) can hash the value the SQL engine actually saw — not the raw wire payload that may still carry client defaults. Split out from invokeMutator so the public export stays SemVer-stable; server-side call sites use this variant.

S extends Record<string, AnyTable>

TCtx

string

Mutator<S, TCtx, unknown>

{ db: Db<S>; args: unknown; ctx: TCtx; } & MutatorOrigin

Promise<{ normalizedArgs: unknown; }>