Details
-
Bug
-
Resolution: Duplicate
-
Critical - P2
-
None
-
2.2
-
None
-
Windows
-
Minor Change
Description
When calling InsertOneAsync with a duplicate key, you get a MongoWriteException. By digging into the WriteError and looking at the code you can determine what the actual failure is, but this behavior is different from something like ReplaceOneAsync which thrown a DuplicateKeyException.
Attachments
Issue Links
- duplicates
-
CSHARP-1236 Non-unique key error handling
-
- Closed
-