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?
Well, when you $unwind the array in the aggregation, it creates a new document for each element in the array. So with 2 documents and 2 elements in each array, we should have 4 documents.
Brynn
6 months agoCecily
6 months agoKristel
6 months agoLynelle
6 months agoCecily
7 months ago