What option should be passed to findByIdAndUpdate to return the modified document instead of the original?
Model.findByIdAndUpdate('documentId', { field: value }, { ____: true })
.then(...
What option should be passed to findByIdAndUpdate to return the modified document instead of the original?
Model.findByIdAndUpdate('documentId', { field: value }, { ____: true })
.then(...