Update the Last Item of Nested Array By Adding to Its Own Value in MongoDB
I'm trying to make a seemingly simple update to a MongoDB collection that looks like the below using Node. Collection { account_id: "ORG1", progress: [{week: 1, goal: 5000, raised: 2400}, {week: 2, goal:5100, raised: 1000}] } The goal is to…