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, duration hours minute second in high quality that is uploaded to the channel Bro Code 22 July 2024. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 4,323 times and liked it 83 visitors.