Skip to content

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.

S extends Schema<Record<string, AnyTable>>

TCtx

TArgs = unknown