# PaginationInput class · @imqueue/pg-sequelize

Source: https://imqueue.org/api/pg-sequelize/latest/pg-sequelize.paginationinput/
Published: 2026-08-01
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/pg-sequelize 4.2.0 — generated reference, not hand-written

Where a page starts and how big it is.

**Signature:**

```typescript
export declare class PaginationInput 
```

## Remarks

Turned into Sequelize's `offset`/`limit` by `query.toLimitOptions`, which treats this input as advisory rather than authoritative — see the notes on each property. A negative `limit` is the interesting case: it means "the last N rows", and it is the only reason `count` exists.

## Properties


| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [count?](https://imqueue.org/api/pg-sequelize/latest/pg-sequelize.paginationinput.count/) |  | number | _(Optional)_ Total rows in the set, used only to place a negative `limit`. |
| [limit](https://imqueue.org/api/pg-sequelize/latest/pg-sequelize.paginationinput.limit/) |  | number | Rows in the page. Negative counts back from the end of the set. |
| [offset](https://imqueue.org/api/pg-sequelize/latest/pg-sequelize.paginationinput.offset/) |  | number | Rows to skip before the page starts. |

