Skip to content

ReplicationEndpoint

Defined in: libs/runtime/src/replicator.ts:55

What replication needs of a store. ChangeLog satisfies it structurally.

Methods

Name Description
applyRemote() Returns whether the revision was new to this endpoint.
conflictsOf() The leaves of a thing that did not win: the conflicts it holds.
since() The changes after cursor (default 0), at most limit, in order.

applyRemote(record): boolean

Defined in: libs/runtime/src/replicator.ts:59

Returns whether the revision was new to this endpoint.

boolean

string

string | null

string

EntityState

boolean


conflictsOf(entityId): readonly object[]

Defined in: libs/runtime/src/replicator.ts:67

The leaves of a thing that did not win: the conflicts it holds.

string

readonly object[]


since(cursor?, limit?): readonly ChangeRecord[]

Defined in: libs/runtime/src/replicator.ts:57

The changes after cursor (default 0), at most limit, in order.

number

number

readonly ChangeRecord[]

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.