tieredReadThrough()
Build explicit lookup facts across tiers plus optional loader fallback (D104 layer 1).
This is a passive storage/domain helper: it creates no graph nodes, performs no hydration or restore, and treats promotion writes as facts rather than a graph commit barrier.
Import
Section titled “Import”import { tieredReadThrough } from "@graphrefly/ts/storage";Signature
Section titled “Signature”function tieredReadThrough(opts: TieredReadThroughOptions<T>): Promise<TieredReadThroughResult<T>>Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
opts | TieredReadThroughOptions<T> | Options that configure the helper. |
Returns
Section titled “Returns”A Promise<TieredReadThroughResult<T>> value.
Example
Section titled “Example”import { tieredReadThrough } from "@graphrefly/ts/storage";Source
Section titled “Source”packages/ts/src/storage/read-through.ts