📜  如何避免模型,isNew,来自猫鼬查询的错误 - 无论代码示例

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

代码示例1
const documents = await DocumentModel.find().select({name:1}).lean()
// Use .lean() method before ending the queryy --> Happy coding