Function: invokeMutatorWithNormalized()
このコンテンツはまだ日本語訳がありません。
Function: invokeMutatorWithNormalized()
Section titled “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.
Type Parameters
Section titled “Type Parameters”S extends Record<string, AnyTable>
TCtx
Parameters
Section titled “Parameters”string
mutator
Section titled “mutator”Mutator<S, TCtx, unknown>
params
Section titled “params”{ db: Db<S>; args: unknown; ctx: TCtx; } & MutatorOrigin
Returns
Section titled “Returns”Promise<{ normalizedArgs: unknown; }>