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

x/earthstar/mod.browser.ts>MultiformatReplica#queryDocs

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

Returns an array of docs for a given query. ``` const myQuery = { filter: { pathEndsWith: ".txt" }, limit: 5, };

const firstFiveTextDocs = await myReplica.queryDocs(myQuery);
```

Parameters

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