Skip to content

VersionsDataInput

VersionsDataInput<DataModel> = Partial<Expand<BetterOmit<DocumentByName<DataModel, TableNamesInDataModel<DataModel>>, "_creationTime" | "_id">>>

Defined in: packages/core/src/versions/api/types.ts:71

The data payload for publish — a partial patch against the target collection’s document shape, _id/_creationTime excluded. Identical in shape to UpdateServerArgs["data"] (api/update/server.ts): publish is “patch a document,” never a distinct payload shape. saveDraft declares its own plain Record<string, unknown> data instead, since it accepts either a collection or a global target.

DataModel extends GenericDataModel

The Convex data model (inferred from ctx).