lean()使うとできるようになる。
Item.findById(req.params.id).lean().exec(function(err, doc) {
...
});
doc.new = "Hi"
Go to list of users who liked
More than 3 years have passed since last update.
lean()使うとできるようになる。
Item.findById(req.params.id).lean().exec(function(err, doc) {
...
});
doc.new = "Hi"
Register as a new user and use Qiita more conveniently
Go to list of users who liked