mongoose trigger valdiation and update 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