Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardMongoDBAggregation pipeline executionSingle-choice MCQ

Consider this pipeline. Explain why MongoDB can push work down even though $match appears after $project in the written stages.

db.orders.aggregate([ { $project: { customerId: 1, total: 1 } }, { $match: { customerId: 42 } } ])