mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
12 lines
167 B
JavaScript
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" );
|