Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

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

Earthstar is a tool for private, undiscoverable, offline-first networks.
Go to Latest
method Replica.prototype.queryDocs
Re-export
import { Replica } from "https://deno.land/x/earthstar@v10.0.0-alpha.2/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>