Skip to main content

πŸ‘ $limit

If we return too many documents but we're interested in only a few, we can limit the number of documents returned using $limit.

[
{ $limit: 1 }
]

This returns just one document.

πŸ‘ Return just 7 books.

Answer
[
{ $limit: 7 }
]