limit in mongodb query code example
Example 1: mongodb limit find
db.collection.find(<query>).limit(<number>).skip(<number>)
Example 2: mongodb shell limit
DBQuery.shellBatchSize = 5000
db.collection.find(<query>).limit(<number>).skip(<number>)
DBQuery.shellBatchSize = 5000