Skip to content

@typedblite/content-revision: Functions

Functions that @typedblite/content-revision exports.

Name Description
canonical The canonical form.
computeRevision Derives a revision from an entity’s state, its parent and whether it deletes it.
conflicts Every leaf that is not the winner — the equivalent of CouchDB’s _conflicts.
digestOf The digest of a revision: everything after the first dash.
generationOf The generation of a revision: the number before the dash, 1 for an entity’s first revision.
latestOf The newest of a set of versioned rows, or undefined when there are none — winner()’s total order, applied to whatever a caller’s own row shape is, rather than each caller mapping to Leaf and finding its own row back by hand.
winner The winner among an entity’s leaves, per ADR-003 Decision 3.

TypeDBLite is an independent open-source project, built on TypeDB with thanks. It is not affiliated with, sponsored by, or endorsed by TypeDB Ltd. Released under the MPL-2.0 license.