-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[REG 8.0.3->8.0.4/8.1.0] updateOne/updateMany can no longer accept runValidators/new #14275
Closed
2 tasks done
Comments
orgads
changed the title
[REG 8.0 -> 8.1] updateOne can no longer accept runValidators
[REG 8.0.3->8.0.4/8.1.0] updateOne can no longer accept runValidators
Jan 20, 2024
orgads
changed the title
[REG 8.0.3->8.0.4/8.1.0] updateOne can no longer accept runValidators
[REG 8.0.3->8.0.4/8.1.0] updateOne/updateMany can no longer accept runValidators/new
Jan 21, 2024
vkarpov15
added a commit
that referenced
this issue
Jan 21, 2024
The return option for the updateMany option, new, is also broken and cannot be used. |
vkarpov15
added a commit
that referenced
this issue
Jan 22, 2024
types(query): add missing `runValidators` back to MongooseQueryOptions
Thanks! |
@par333k |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Prerequisites
Mongoose version
8.1.0
Node.js version
20.10.0
MongoDB server version
6.2.0
Typescript version (if applicable)
5.3.3
Description
Passing
runValidators: true
toupdateOne
(documented here) is broken with 8.1.0.Probably broke with abdac8d.
I think that either
updateOne
should be reverted to acceptQueryOptions
, orMongooseQueryOptions
should include alsorunValidators
.Steps to Reproduce
Expected Behavior
No response
The text was updated successfully, but these errors were encountered: