$ open source · GPL-3.0 — need a commercial license? imqueue.com →

PaginationInput class

Where a page starts and how big it is.

Signature:

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?

number

(Optional) Total rows in the set, used only to place a negative limit.

limit

number

Rows in the page. Negative counts back from the end of the set.

offset

number

Rows to skip before the page starts.