Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyMongoDBsingle-field indexesSingle-choice MCQ

You created a single-field index { age: 1 } (ascending). Which query below can the index still help, sorting in descending order?

db.users.find().sort({ age: -1 })