Details
-
New Feature
-
Status: Closed
-
Minor - P4
-
Resolution: Gone away
-
1.0.0
-
None
-
None
Description
Support for this isn't implemented yet. (May be related to virtual collections.)
-
- preparation
use hej;
var a = {_id:1, question:"what is my name?", answers:[{_id:11, text:"its earl", comments:[{_id:111, text:"I agree"}]}]};
db.hej.save(a);
-
- query
db.hej.update({_id:1, "answers._id":11}, {"$push":{"answers.comments": {_id:112, text:"I dont agree"} }});
-
- error
> db.getLastError()
Modifier spec implies existence of an encapsulating object with a name that already represents a non-object, or is referenced in another $set clause
-
- notes
Attachments
Issue Links
- depends on
-
SERVER-142 Read-only views over collection data.
-
- Closed
-