Skip to main content

Interface: DocChange<T>

A single change applied to a watched collection.

Type Parameters

Type Parameter
T

Properties

PropertyTypeDescriptionDefined in
dataTThe item data (last known state for removals).4Players/cortex-typescript-sdk/src/realtime/watch.ts:24
idstringThe stable id of the affected item.4Players/cortex-typescript-sdk/src/realtime/watch.ts:22
type"added" | "modified" | "removed"Whether the item was added, modified, or removed from the collection.4Players/cortex-typescript-sdk/src/realtime/watch.ts:20