Mongodb – How do I update different objects in an array within the same query in mongoose?
This is my mongoose schema: const humanSchema = mongoose.Schema({ id: String, person: [ id: String, age: Number, sex: String, height: String ], employment: Boolean }); This is my JSON body request I am trying to pass through postman as a…