db.sessions.update({"_id": {$ref: "users", $id: "matew12"}}, {$push:{"sessions":ObjectId()}}, true);
I try insert (as update) DBRef into _id, but it insert new ObjectId.
- duplicates
-
SERVER-1470 Update w/upsert ignores dbref field from query on insert
- Closed