Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumMongoDB$unwind arraysSingle-choice MCQ

What does the following pipeline produce for a document { _id: 1, items: [ {a:1}, {a:2} ], note: "x" }?

db.docs.aggregate([ { $unwind: "$items" } ])