Skip to main content

πŸ‘ $limit

If we return too many documents, but we're interested just in 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 }
]