Skip to content

Glossary: MongoDB

Paging (skip and limit)

Also written: skip, limit, paging

Cursor methods for showing results a page at a time: `.skip(n)` passes over the first n documents and `.limit(n)` returns at most n, like SQL's `offset` and `limit`. Combine them with `.sort()` for stable pages.

Where the book teaches it

Related terms

Cursor$limit