热带水果' } },
);
// 更新内嵌字段
{ $set: { ..., area: {city: '三亚'} } }
// 数组相关:$,$[],$addToSet,$pull,$pop,$push...,$pullAll
// $push用于新增
insertOne({tags: ['热带','甜']}) //添加tags数组字段
fruitsColl.updateMany({ name: "芒果"...}, { $push: {tags: '上火'}}) // $pull,$pullAll用于删除符合条件项,$pop删除首项-1或尾项1
fruitsColl.updateMany({ name: "芒果...exec()
r = await Model.find({ name: "苹果" });
console.log("查询结果:", r);
// 6.更新,updateOne...返回Query
r = await Model.updateOne({ name: "苹果" }, { $set: { name: '芒果' } });
// 7.删除