summaryrefslogtreecommitdiff
path: root/jstests/core/updateb.js
blob: d85e19a36bc5c59b0bd8d95f3920b7c60d8485a0 (plain)
1
2
3
4
5
6
7
8
9
10
11

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" )