📜  mongoose remove - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:44.552000             🧑  作者: Mango

代码示例5
const res = await Character.remove({ name: 'Eddard Stark' });
res.deletedCount; // Number of documents removed