Skip to content
PACKAGES

listByPrefix()

Convenience wrapper for deterministic prefix listing.

import { listByPrefix } from "@graphrefly/ts/storage";
function listByPrefix(
tier: KvStorageTier<T>,
prefix = "",
): Promise<readonly string[]>
ParameterTypeDescription
tierKvStorageTier<T>tier value used by the helper.
prefixunknownprefix value used by the helper.

A Promise<readonly string[]> value.

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

packages/ts/src/storage/kv.ts