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

What is the output of this aggregation given the documents and the $unwind on an empty array?

db.posts.insertOne({ _id: 1, tags: [] }); db.posts.aggregate([ { $unwind: '$tags' } ]);