0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 09:06:21 +01:00
mongodb/jstests/objid2.js
2009-01-31 17:22:22 -05:00

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