Skip to content

computeRevision

computeRevision(input): string

Defined in: libs/content-revision/src/lib/revision.ts:78

Derives a revision from an entity’s state, its parent and whether it deletes it. The generation is the parent’s plus one (1 for the first revision), and the digest is a hash of the content, so the same edit on the same parent gives the same revision on every node.

RevisionInput

string

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.