-
Type: Bug
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Write Ops
-
Query Optimization
-
ALL
$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" } }
- related to
-
SERVER-29819 Can create invalid dbref using $unset, but not $set
- Closed