MongoDB sorting and limiting explained

Published: 22 July 2024
on channel: Bro Code
4,323
83

#MongoDB #course #tutorial

db.students.find()
db.students.find().sort({name: 1})
db.students.find().sort({name: -1})
db.students.find().sort({gpa: 1})
db.students.find().sort({gpa: -1})
db.students.find().limit(1)
db.students.find().limit(3)
db.students.find().sort({gpa: -1}).limit(1)
db.students.find().sort({gpa: -1}).limit(3)


Watch video MongoDB sorting and limiting explained online without registration, duration hours minute second in high quality. This video was added by user Bro Code 22 July 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 4,323 once and liked it 83 people.