Skip to content

VexWriteResult

Defined in: packages/core/src/db/staleWrite.ts:122

What saveDraft, publish, update and globals.upsert return: the written row’s id, and the fingerprint of what was stored for every field the caller sent — the base for that caller’s next write of those fields.

TId extends string = string

The branded id type of the written row. Defaults to plain string — update/replace/saveDraft/publish return it unparameterized since callers already hold the id they passed in; upsertGlobal pins it to GenericId<"vex_globals"> so callers get the branded id back without a cast (see its own return type).

base: VexWriteBase

Defined in: packages/core/src/db/staleWrite.ts:126

Stored-value fingerprints for every key of the caller’s data.


id: TId

Defined in: packages/core/src/db/staleWrite.ts:124

The written row’s _id (a draft row’s own id for saveDraft).