A better way of Grouping an array together into a single document

I found this post by your good self and have managed to work it out from there.
https://www.mongodb.com/community/forums/t/how-to-group-an-array-using-reduce-without-unwind-group/8550/7

Thanks again.

2 Likes