showing results for - "mongoose wont update value in array"
Adèle
05 Sep 2019
1//Maybe notify mongooose the dataset has changed like this :
2
3doc.markModified('pathToYourAttribute') 
4//From the docs http://mongoosejs.com/docs/schematypes.html
5
6person.anything = { x: [3, 4, { y: "changed" }] }; 
7person.markModified('anything');