findAndUpdate: change the default new
to true
by default on mongoose?
#9184
Labels
discussion
If you have any thoughts or comments on this issue, please share them!
We could introduce a breaking change in 6.0 and make
findOneAndUpdate
havenew
option set totrue
by default, after implementing #9183 we will be giving users the option to change that behavior if they prefer.I believe the majority of users would prefer to have the updated document returned from
findOneAndUpdate
by default.Thoughts? @vkarpov15
The text was updated successfully, but these errors were encountered: