Skip to main content
server.MergedQuery Several index ranges read as one ordered, paginated query.

Type parameters

Methods

paginate

▸ paginate(options): Promise<PaginationResult<Document>> One page of the merged rows, in their shared index order, each row once. The cursor continues every range just after the last row the page returned. With endCursor, the page is the rows up to that boundary, as reactive pagination clients request; re-executions keep the boundary of their first run.

Parameters

Returns

Promise<PaginationResult<Document>>

take

▸ take(n): Promise<Document[]> The first n merged rows.

Parameters

Returns

Promise<Document[]>