Suposse tou have the following collection with only 2 documents:
If you run an aggregation query and use { $unwind: "$traits" } as the first stage, how many documents will be passed to the next stage of the aggregation pipeline?
The answer is clearly C) 4. The unwind operation will split each document into individual elements of the 'traits' array, so the original 2 documents will become 4 documents.
Asha
2 days agoParis
7 days ago