0 Limiting The Number of Results Returned in MongoDB askyb on August, 18th 2014 in mongodb Sometimes you may wish to prevent MongoDB from returning more results than required for processing. To set a limit, chain the limit function onto your call to find. For example, to only return three results, use this: > db.info.find().limit(3) askyb Sort the Results Returned in MongoDB Skipping Results Returned in MongoDB Getting Number of Documets in Collection Leave a Reply Cancel replyYour email address will not be published. Required fields are marked *Comment Name * Email * Website
Limiting The Number of Results Returned in MongoDB