Type Alias: Mutator<S, TCtx, TArgs>
このコンテンツはまだ日本語訳がありません。
Type Alias: Mutator<S, TCtx, TArgs>
Section titled “Type Alias: Mutator<S, TCtx, TArgs>”Mutator<
S,TCtx,TArgs> =MutatorFn<S,TCtx,TArgs> |MutatorObject<S,TCtx,TArgs>
Defined in: core/dist/index.d.ts:773
A user-defined mutation function. The same function runs on the client
(speculatively, against IndexedDB) and on the server (canonically, against
D1 / Postgres). Pass either the bare function or the object form —
invokeMutator normalises both.
Type Parameters
Section titled “Type Parameters”S extends Schema<Record<string, AnyTable>>
TCtx
TArgs = unknown