mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-30 09:06:21 +01:00
8 lines
139 B
JavaScript
8 lines
139 B
JavaScript
t = db.objid2;
|
|
t.drop();
|
|
|
|
t.save( { _id : 517 , a : "hello" } )
|
|
|
|
assert.eq( t.findOne().a , "hello" );
|
|
assert.eq( t.findOne()._id , 517 );
|