Is it possible to merge array fields in while using MongoDB aggregation framework? Here is a summary problem I am trying to solve:
Sample input documents for aggregation
As already mentioned in one of the comments, the simplest answer to the original question is to add preserveNullAndEmptyArrays to the $unwind stage.