mongoose很是好用但易忘的API

$unset删除document指定字段 db.user.update( {"account":{"$exists":true}}, {"$unset":{"account":""}}, {multi:true} ); findOneAndUpdate() A.findOneAndUpdate(conditions, update, options, callback) // executes /
相关文章
相关标签/搜索