I\'m running some project on MEAN.js and I\'ve got a following problem. I want to make some user\'s profile calculation and the save it to database. But there\'s a problem w
Had a similar problem. This worked for me:
// create a new copy let newUser= ({...user}._doc); // delete the copy and use newUser that thereafter. delete newUser.password;