$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.
An aggregation stage that keeps only the first n documents. It's also handy for peeking at a pipeline's output while building it.