Skip to content
PACKAGES

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 { attachObserveEventLog } from "@graphrefly/ts/adapters/observe-storage";
function attachObserveEventLog(
graph: Graph,
log: AppendLogStorageTier<ObserveEventFrame<T>>,
opts: AttachObserveEventLogOptions<T>,
): ObserveEventLogHandle
ParameterTypeDescription
graphGraphGraph that owns the created nodes or projector.
logAppendLogStorageTier<ObserveEventFrame<T>>log value used by the helper.
optsAttachObserveEventLogOptions<T>Options that configure the helper.

A ObserveEventLogHandle value.

import { attachObserveEventLog } from "@graphrefly/ts/adapters/observe-storage";

packages/ts/src/adapters/observe-storage.ts