Mongodb – Nested array aggregate only taking one field to match
I have following json data in mongodb. [ { "_id": 1, "name": "user1", "userActivities": [ { "actionTaken": "Sign in.", "progress": "Success." }, { "actionTaken": "logout", "progress": "Success." } ] }, { "_id": 2, "name": "user2", "userActivities": [ { "actionTaken": "Sign…