limit in mongodb code example
Example 1: limit aggregation mongodb
{ $limit: <positive integer> }
Example 2: mongodb limit find
db.collection.find(<query>).limit(<number>).skip(<number>)
Example 3: mongodb shell limit
DBQuery.shellBatchSize = 5000