Mongodb – Why am I getting 'req.body undefined' when trying to push a new nested array in an array through update request in Node.js?
Actually I am trying to push a new nested array inside an array through update request for an API. I am using all necessary middleware such as app.use(express.json()) and app.use(express.urlencoded({extended: true})); and also the multipart/form-data in the postman header but…