> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Interface: MergedQuery<Document>

> Several index ranges read as one ordered, paginated query.

[server](/api/modules/server).MergedQuery

Several index ranges read as one ordered, paginated query.

## Type parameters

| Name |
| :- |
| `Document` |

## Methods

### paginate

▸ **paginate**(`options`): `Promise`\<[`PaginationResult`](/api/interfaces/server.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

| Name | Type |
| :- | :- |
| `options` | [`PaginationOptions`](/api/interfaces/server.PaginationOptions) |

#### Returns

`Promise`\<[`PaginationResult`](/api/interfaces/server.PaginationResult)\<`Document`>>

***

### take

▸ **take**(`n`): `Promise`\<`Document`\[]>

The first `n` merged rows.

#### Parameters

| Name | Type |
| :- | :- |
| `n` | `number` |

#### Returns

`Promise`\<`Document`\[]>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.