Remote / foldkit-remote-domain

ViewConfig

interface · packages/remote-domain/src/adapter/binding.ts:115

interface ViewConfig<E extends AnyEntity> {
  readonly revision: RevisionKey<E>
}

What DomainRemote.view takes besides the Entity, the Api and the View's name.

Members

ViewConfig.revision

property · packages/remote-domain/src/adapter/binding.ts:122

readonly revision: RevisionKey<E>

The field every event moves: the order of two snapshots of one key. It must rise across the stream's whole life, deletion included: a key created again at a revision no higher than the one it was deleted or hidden at stays absent to who saw that, until a later revision.