skip to Main Content

MongoDB aggregation to group by multiple fields

I have following data in my collection { “name": “test”, "data": { “statusOne”: “enabled”, “statusTwo”: “active” } } { “name": “test”, "data": { “statusOne”: “disabled”, “statusTwo”: “active” } } { “name": “another-test”, "data": { “statusOne”: “disabled”, “statusTwo”: “active” } }…

VIEW QUESTION
Back To Top
Search