How do I perform an union of two distinct collection in aggregation framework

I had a similar situation and this stackoverflow helped