ReplicationEndpoint
Defined in: libs/runtime/src/replicator.ts:55
What replication needs of a store. ChangeLog satisfies it structurally.
Member summary
Section titled “Member summary”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. |
Methods
Section titled “Methods”applyRemote()
Section titled “applyRemote()”applyRemote(
record):boolean
Defined in: libs/runtime/src/replicator.ts:59
Returns whether the revision was new to this endpoint.
Parameters
Section titled “Parameters”record
Section titled “record”deleted
Section titled “deleted”boolean
entityId
Section titled “entityId”string
parentRev?
Section titled “parentRev?”string | null
string
state?
Section titled “state?”Returns
Section titled “Returns”boolean
conflictsOf()
Section titled “conflictsOf()”conflictsOf(
entityId): readonlyobject[]
Defined in: libs/runtime/src/replicator.ts:67
The leaves of a thing that did not win: the conflicts it holds.
Parameters
Section titled “Parameters”entityId
Section titled “entityId”string
Returns
Section titled “Returns”readonly object[]
since()
Section titled “since()”since(
cursor?,limit?): readonlyChangeRecord[]
Defined in: libs/runtime/src/replicator.ts:57
The changes after cursor (default 0), at most limit, in order.
Parameters
Section titled “Parameters”cursor?
Section titled “cursor?”number
limit?
Section titled “limit?”number
Returns
Section titled “Returns”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.