Skip to main content
Module

x/earthstar/src/entries/universal.ts>ReplicaCache#queryDocs

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

Fetch docs matching a query from the cache. Returns an empty array in case of a cache miss, and queries the backing replica.

Parameters

optional
query: Omit<Query<[string]>, "formats"> = [UNSUPPORTED]
optional
formats: FormatsArg<F>