Articles → MONGODB → Limit Method In Mongodb

Limit Method In Mongodb






Purpose





Example




Picture showing the sample mongodb collection




db.[collection].find().limit(2)



Output


Picture showing the output of limit method in mongodb





Posted By  -  Karan Gupta
 
Posted On  -  Tuesday, March 19, 2024

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250