ChangeRecord
Defined in: libs/runtime/src/change-log.ts:80
One revision in the change log: what since() returns, and what replication sends.
Member summary
Section titled “Member summary”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. |
Properties
Section titled “Properties”deleted
Section titled “deleted”
readonlydeleted:boolean
Defined in: libs/runtime/src/change-log.ts:90
Whether it is a tombstone: the thing was deleted.
entityId
Section titled “entityId”
readonlyentityId: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.
parentRev
Section titled “parentRev”
readonlyparentRev:string|null
Defined in: libs/runtime/src/change-log.ts:88
The revision it follows, or null for the thing’s first.
readonlyrev: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.
readonlyseq: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.
state?
Section titled “state?”
readonlyoptionalstate?: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.