Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumMongoDBpartial and sparse indexesSingle-choice MCQ

You create the index below. Which write will the index actually store an entry for?

db.orders.createIndex( { customerId: 1 }, { partialFilterExpression: { status: { $eq: "active" }, total: { $gt: 100 } } } )