Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/earthstar/mod.ts>ReplicaCache#getLatestDocAtPath

Storage for private, distributed, offline-first applications.
Go to Latest
method ReplicaCache.prototype.getLatestDocAtPath
import { ReplicaCache } from "https://deno.land/x/earthstar@v10.0.1/mod.ts";

Fetch latest version of a doc at a path from the cache. Returns an empty array in case of a cache miss, and queries the backing replica.

Parameters

path: Path
optional
format: FormatArg<F>

Returns

FormatDocType<F> | undefined