bulkWrite runs validators but there is no way to turn them off with a setting #11663
Labels
confirmed-bug
We've confirmed this is a bug in Mongoose and will fix it.
Milestone
Do you want to request a feature or report a bug?
A feature.
What is the current behavior?
When using bulkWrite, I get validation errors for required fields but I am unable to set runValidators to false.
If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
When using bulkWrite, I do not get validation errors for required fields because I set runValidators to false.
What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
Node.js: 16.13.0
Mongoose: 6.1.5
MongoDB: 4.4.12
The text was updated successfully, but these errors were encountered: