0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00
mongodb/jstests/basic8.js

12 lines
167 B
JavaScript
Raw Normal View History

2009-06-24 20:50:59 +02:00
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" );