# PaginationInput.limit property · @imqueue/pg-sequelize

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

Rows in the page. Negative counts back from the end of the set.

**Signature:**

```typescript
limit: number;
```

## Remarks

Zero, absent or non-numeric means no pagination at all: `toLimitOptions` returns an empty options object and the query is left unbounded. That is a quiet default worth knowing about — a caller who sends `limit: 0` expecting "no rows" gets every row.

A negative value takes the absolute value as the page size and, when `offset` is zero, positions the window at the end of the set: `count - limit`, clamped at zero. So `{ limit: -10, count: 1340 }` is the last ten rows. Without a `count` the offset computes to a negative number and clamps to zero, giving the FIRST ten rows rather than the last — the two properties go together.

