mongodb query limit code example
Example 1: limit aggregation mongodb
{ $limit: <positive integer> }
Example 2: mongodb shell limit
DBQuery.shellBatchSize = 5000
{ $limit: <positive integer> }
DBQuery.shellBatchSize = 5000