-
Type: Improvement
-
Resolution: Duplicate
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: Internal Code, Usability
Add the key/index fields as shown below.
E11000 duplicate key error index: test.people.$_id_ dup key: { : ObjectId('4e683574bc4135eee514713f') } > db.getLastErrorObj() { "err" : "E11000 duplicate key error index: test.people.$_id_ dup key: { : ObjectId('4e683574bc4135eee514713f') }", "code" : 11000, "key": { "_id" : ObjectId('4e683574bc4135eee514713f') } "index" : "test.people.$_id_", "n" : 0, "connectionId" : 1777, "ok" : 1 }