Skip to content

listVersions

listVersions<DataModel>(props): Promise<VexVersion[]>

Defined in: packages/core/src/versions/model.ts:164

Returns every vex_versions row for a document, newest first.

Unbounded by default (decision 3: no automatic pruning) — limit exists only to cap what a single history-dropdown render fetches, not to express a retention policy.

DataModel extends GenericDataModel

Input props.

string

The collection slug.

GenericQueryCtx<DataModel> | GenericMutationCtx<DataModel>

A Convex query or mutation context.

string

The document’s _id, stringified.

number

Maximum number of rows to return, newest first. Omitted returns the full history.

Promise<VexVersion[]>

Version rows ordered by version descending.