persistReactiveCollection()
D161 graph-bound sidecar over an existing collection. It writes passive storage frames and exposes adapter progress as graph-visible DATA facts; it never restores or mutates the collection.
Import
Section titled “Import”import { persistReactiveCollection } from "@graphrefly/ts/adapters";Signature
Section titled “Signature”function persistReactiveCollection( graph: Graph, collection: PersistableCollection<T, K>, opts: PersistReactiveCollectionOptions<K>,): ReactiveCollectionPersistenceHandleParameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
graph | Graph | Graph that owns the created nodes or projector. |
collection | PersistableCollection<T, K> | collection value used by the helper. |
opts | PersistReactiveCollectionOptions<K> | Options that configure the helper. |
Returns
Section titled “Returns”A ReactiveCollectionPersistenceHandle value.
Example
Section titled “Example”import { persistReactiveCollection } from "@graphrefly/ts/adapters";Source
Section titled “Source”packages/ts/src/adapters/reactive-collection-storage.ts