GraphReFlyTS

API Reference

listByPrefix()

Convenience wrapper for deterministic prefix listing.

Import

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

Signature

function listByPrefix(
	tier: KvStorageTier<T>,
	prefix = "",
): Promise<readonly string[]>

Parameters

ParameterTypeDescription
tierKvStorageTier<T>tier value used by the helper.
prefixunknownprefix value used by the helper.

Returns

A Promise<readonly string[]> value.

Example

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

Source

packages/ts/src/storage/kv.ts