Details
-
Bug
-
Resolution: Unresolved
-
Major - P3
-
None
-
None
-
Query Optimization
-
ALL
Description
$id should be a required field of a dbref, but it is not enforced in insert:
> db.coll.insert({a: {$ref: "c", $db: "test"}})
|
WriteResult({ "nInserted" : 1 })
|
> db.coll.find()
|
{ "_id" : ObjectId("594d2455ae497a9bea475a72"), "a" : { "$ref" : "c", "$db" : "test" } }
|
Attachments
Issue Links
- related to
-
SERVER-29819 Can create invalid dbref using $unset, but not $set
-
- Closed
-