Answers for "sort and limit in mongodb aggregation"

1

how to sort and limit the result using mongodb

db.Employee.find().limit(2).sort({age:-1})
Posted by: Guest on May-05-2021
1

how to sort and limit the result using mongodb

for more information see this 
https://www.guru99.com/mongodb-query-modifications-using-limit-sort.html
Posted by: Guest on May-05-2021

Code answers related to "sort and limit in mongodb aggregation"

Browse Popular Code Answers by Language