The cause of your 'troubles' is the second aggregation stage - { $unwind: "$address" }
. It removes record for party with _id: 4
(because its address array is empty, as you mention) and produces two records for parties _id: 1
and _id: 5
(because each of them has twoโฆ
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (1)
I have the same question mine is kindda complicate i guess