blob: f90ac62b6c3dddd179c1119471d9c24ebc70b265 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
t = db.updateb;
t.drop();
t.update({"x.y": 2}, {$inc: {a: 7}}, true);
correct = {
a: 7,
x: {y: 2}
};
got = t.findOne();
delete got._id;
assert.docEq(correct, got, "A");
|