0
db.users.findOne({}, function (err, user) {
//update or add a field
user.name = 'Phil';
//is the next line possible?
user.save(); //error :(
});
是否有像'保存'的功能,以便我对'用户'的更改将保存在数据库中?Node.js + Mongodb:是否可以对从数据库返回的数据调用'save'?