-
Type: Bug
-
Resolution: Gone away
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Shell API
-
None
-
2
-
Not Needed
Problem Statement/Rationale
When insertMany() fails due to document validation rules, it should print out the failed rules in the same way insertOne() or updateMany() do.
Steps to Reproduce
- connect to a 5.0 server
- db.createCollection('with_validation', {validator: {$jsonSchema: {required: ['foo']}}}
Expected Results
db.with_validation.insertMany([\{bar: 1}]) prints out the reasons for failing validation
Actual Results
db.with_validation.insertMany([\{bar: 1}]) does not print out the reasons for failing validation
Additional Notes
Any additional information that may be useful to include.
- depends on
-
NODE-3434 insertMany result does not include server-side validation error information
- Closed