summaryrefslogtreecommitdiff
path: root/jstests/basic8.js
blob: 513da0d15d18d392da580f3152857f107bd7074b (plain)
1
2
3
4
5
6
7
8
9
10
11

t = db.basic8;
t.drop();

t.save( { a : 1 } );
o = t.findOne();
o.b = 2;
t.save( o );

assert.eq( 1 , t.find().count() , "A" );
assert.eq( 2 , t.findOne().b , "B" );