Skip to content

ChangeRecord

Defined in: libs/runtime/src/change-log.ts:80

One revision in the change log: what since() returns, and what replication sends.

Properties

Name Description
deleted Whether it is a tombstone: the thing was deleted.
entityId The thing it revises, as entityId spells it: type/key, or local:… for a thing with no key.
parentRev The revision it follows, or null for the thing’s first.
rev Its revision, generation-digest, derived from its content: the same edit gives the same revision on every store.
seq Its position in this store’s log, increasing.
state? The revision’s content.

readonly deleted: boolean

Defined in: libs/runtime/src/change-log.ts:90

Whether it is a tombstone: the thing was deleted.


readonly entityId: string

Defined in: libs/runtime/src/change-log.ts:84

The thing it revises, as entityId spells it: type/key, or local:… for a thing with no key.


readonly parentRev: string | null

Defined in: libs/runtime/src/change-log.ts:88

The revision it follows, or null for the thing’s first.


readonly rev: string

Defined in: libs/runtime/src/change-log.ts:86

Its revision, generation-digest, derived from its content: the same edit gives the same revision on every store.


readonly seq: number

Defined in: libs/runtime/src/change-log.ts:82

Its position in this store’s log, increasing. A cursor for since(); local to the store.


readonly optional state?: EntityState

Defined in: libs/runtime/src/change-log.ts:92

The revision’s content. Absent for a tombstone, which has no state.

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.