Skip to content

createMutationsApi

createMutationsApi<TRegistry>(deps): MutationsApi<TRegistry>

Defined in: packages/client/src/mutations-api.ts:266

Build the client.mutations API over the shared seams. Implemented ONCE — both client modes pass their own subscribeLiveRows + one-shot query, so semantics are identical and the worker bridge is untouched. A registry with NO writable table emits no view, so the API short-circuits to empty shapes WITHOUT touching the (absent) view — derived from the registry, never a runtime probe.

TRegistry extends SyncTableRegistry

MutationsApiDeps<TRegistry>

MutationsApi<TRegistry>