Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumMongoDBmultikey array indexesSingle-choice MCQ

A collection has a multikey index on `scores` (an array of numbers). You run a query with a bound on the same array field. Which statement about how the index bounds are applied is correct?

db.players.createIndex({ scores: 1 }) db.players.find({ scores: { $gt: 5, $lt: 10 } })