I\'m building an express app, and I was working on an update endpoint, where I have to update an array of objects in my mongoDB. Here is the code for it: