mongoose error this.$op code example
Example: how to avoid model , isNew , error from mongoose query
const documents = await DocumentModel.find().select({name:1}).lean()
// Use .lean() method before ending the queryy --> Happy coding
const documents = await DocumentModel.find().select({name:1}).lean()
// Use .lean() method before ending the queryy --> Happy coding