Answers for "how to sort when you using limit mongodb"

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 "how to sort when you using limit mongodb"

Browse Popular Code Answers by Language