Skip to main content
Module

x/earthstar/mod.ts>Replica#queryDocs

A specification and Javascript library for building online tools you can truly call your own.
Go to Latest
method Replica.prototype.queryDocs
import { Replica } from "https://deno.land/x/earthstar@v9.3.3/mod.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: Query = [UNSUPPORTED]

Returns

Promise<Doc[]>