MongoDB limit() method is used to limit the number of documents returned by a query.
Syntex-
db.collection.find({ <criteria> }).limit(<limit>)
criteria - Optional
Example-
db.users.find({}).limit(5)
Query will return 5 documents from the "users" collection.