mongoose很是好用但易忘的API

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