-
Type: Bug
-
Resolution: Works as Designed
-
Priority: Major - P3
-
None
-
Affects Version/s: 3.6.7, 4.0.0
-
Component/s: Tools
-
None
-
Environment:Windows
-
ALL
Example shell output:
> db.dup.insert({_id:1, a:1, a:2})
WriteResult({ "nInserted" : 1 })
> db.dup.find()
InsertMany has the same problem:
> db.dup.insertMany([\{_id:1, a:1, a:2},\{_id:2,a:1,a:2}])
{ "acknowledged" : true, "insertedIds" : [ 1, 2 ] }> db.dup.find()
{ "_id" : 1, "a" : 2 } { "_id" : 2, "a" : 2 }- related to
-
SERVER-6439 Duplicate fields at the same level should not be allowed
- Backlog