fix(collection): improve duplicate key error reporting on insert
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
# Changelog
|
||||
|
||||
## 2026-04-05 - 7.1.6 - fix(collection)
|
||||
improve duplicate key error reporting on insert
|
||||
|
||||
- Wrap insertOne() in error handling to detect MongoDB duplicate key conflicts
|
||||
- Log a clearer message with the collection name and identifiable object when unique indexes are involved
|
||||
- Guide callers to use getInstance() or save() on a db-retrieved instance when a duplicate already exists
|
||||
|
||||
## 2026-04-05 - 7.1.5 - fix(collection)
|
||||
ensure unique indexes are marked before upsert operations
|
||||
|
||||
|
||||
Reference in New Issue
Block a user