near with limit using aggregations mongo db code example Example: limit aggregation mongodb { $limit: <positive integer> }