GraphReFlyTS

API Reference

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

import { tieredReadThrough } from "@graphrefly/ts/storage";

Signature

function tieredReadThrough(opts: TieredReadThroughOptions<T>): Promise<TieredReadThroughResult<T>>

Parameters

ParameterTypeDescription
optsTieredReadThroughOptions<T>Options that configure the helper.

Returns

A Promise<TieredReadThroughResult<T>> value.

Example

import { tieredReadThrough } from "@graphrefly/ts/storage";

Source

packages/ts/src/storage/read-through.ts