PaginationInput.limit property
Rows in the page. Negative counts back from the end of the set.
Signature:
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.