0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00
mongodb/jstests/basic8.js
2009-06-24 14:50:59 -04:00

12 lines
167 B
JavaScript

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