Remote / foldkit-remote-domain

ViewBinding

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

interface ViewBinding<
  E extends AnyEntity = AnyEntity,
  A extends AnyApi = AnyApi,
> {
  readonly entity: E
  readonly api: A
  readonly view: ViewNameOf<A>
  readonly revision: RevisionKey<E>
  readonly rejections: ReadonlyArray<Domain.Rejection.Any>
}

A View bound to the Entity whose rows it serves.

Members

ViewBinding.entity

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

readonly entity: E

ViewBinding.api

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

readonly api: A

ViewBinding.view

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

readonly view: ViewNameOf<A>

ViewBinding.revision

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

readonly revision: RevisionKey<E>

The field every event moves: the order of two snapshots of one key.

ViewBinding.rejections

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

readonly rejections: ReadonlyArray<Domain.Rejection.Any>

What the View's validate refuses a read with: the row is absent to who asks.