Conditional $lookup

And since $unionWith was added in 4.4 you can also do two aggregations within the same aggregation pipeline, btw.

Asya

3 Likes