Save() 给我错误,例如“对象没有方法‘保存’”
Country.update({id:req.param('country_id')},model).exec(function(err,cntry){
if(err) 返回 res.json(err);
如果(!cntry.image){
cntry.image = '图片/国家/'+文件名;
cntry.save(function(err){ console.log(err)});
}
})
关于如何在更新查询中保存模型的任何想法。??