how to sort and limit the result using mongodb
db.Employee.find().limit(2).sort({age:-1})
how to sort and limit the result using mongodb
db.Employee.find().limit(2).sort({age:-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
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us