mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 01:21:03 +01:00
11 lines
159 B
JavaScript
11 lines
159 B
JavaScript
db = connect( "test" );
|
|
t = db.objid3;
|
|
t.drop();
|
|
|
|
t.save( { a : "bob" , _id : 517 } );
|
|
for ( var k in t.findOne() ){
|
|
assert.eq( k , "_id" );
|
|
break;
|
|
}
|
|
|