Posts by Artur Nista • 126 points
1 post
-
1
votes1
answer33
viewsA: Javascript object does not create new Keys
Mongo uses a getter for the data. If you want to change the value (or add new data), the usuario._doc. let usuarioCopy = usuario._doc; usuarioCopy.status = 0; console.log(usuarioCopy); Note: In this…