Answers for "mongoose wont update value in array"

0

mongoose wont update value in array

//Maybe notify mongooose the dataset has changed like this :

doc.markModified('pathToYourAttribute') 
//From the docs http://mongoosejs.com/docs/schematypes.html

person.anything = { x: [3, 4, { y: "changed" }] }; 
person.markModified('anything');
Posted by: Guest on April-01-2021

Code answers related to "mongoose wont update value in array"

Code answers related to "Javascript"

Browse Popular Code Answers by Language