Skip to content

Glossary: MongoDB

$limit

An aggregation stage that keeps only the first n documents. It's also handy for peeking at a pipeline's output while building it.

Where the book teaches it

Related terms

$sortStage