attachObserveEventLog()
Persist Graph.observe() events to an append log. This is a graph-bound adapter over passive storage frames, not graph restore or projection.
Import
Section titled “Import”import { attachObserveEventLog } from "@graphrefly/ts/adapters/observe-storage";Signature
Section titled “Signature”function attachObserveEventLog( graph: Graph, log: AppendLogStorageTier<ObserveEventFrame<T>>, opts: AttachObserveEventLogOptions<T>,): ObserveEventLogHandleParameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
graph | Graph | Graph that owns the created nodes or projector. |
log | AppendLogStorageTier<ObserveEventFrame<T>> | log value used by the helper. |
opts | AttachObserveEventLogOptions<T> | Options that configure the helper. |
Returns
Section titled “Returns”A ObserveEventLogHandle value.
Example
Section titled “Example”import { attachObserveEventLog } from "@graphrefly/ts/adapters/observe-storage";Source
Section titled “Source”packages/ts/src/adapters/observe-storage.ts