aggregate function in mongodb restrictions code example Example: limit aggregation mongodb { $limit: <positive integer> }