zyx
0
Q:

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
0

New to Communities?

Join the community