global option to set new
on all findAndUpdate operations
#9183
Labels
new feature
This change adds new functionality, like a new method or class
Milestone
new
option on findOneAndUpdate is a common gotcha to people using mongoose, I personally have been confused by it before.I believe most people would prefer to have
findOneAndUpdate
return the new document by default, we should provide a global option that allows people to control the default behavior.The text was updated successfully, but these errors were encountered: