TA贡献1788条经验 获得超4个赞
node.js中删除monogodb数组子文档使用$pull关键词参考代码:var filter = {_id: suggestID};var update = {$pull: {replies: {rid:opts.doc.rid}}};return opts.dbs.csdb.collection("suggests").findOneAndUpdateAsync(filter, update, {upsert: false})
举报