Javascript – Update/upsert array within array using update aggregate?
I have a collection containing documents as such: { "category":"A", "list": [ { "item": 1, "sub_list": [ 11 ] }, { "item": 2, "sub_list": [13, 43] }, ], } How do I add a number to the sub_list given category…