-
Type:
Task
-
Resolution: Gone away
-
Priority:
Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: None
NODE-4317 Description
How are you using Mongo? What version of the server and driver are you using?
Latest version
What is the feature/improvement you would like?
When I update a document that violates unique index in a collection, I get an error with codeName: 'DuplicateKey'. But when I insert a document that violates unique index in a collection, I just get an error with code 11000. I would like to also see there codeName 'DuplicateKey' in error object.
What use case would this feature/improvement enable?
It would improve readability of error handling in the code and also help to distinguish this kind of error from others.
- is depended on by
-
NODE-4317 Create codeName property for insertOne
-
- Closed
-