0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00
mongodb/jstests/find7.js
2010-02-16 08:25:30 -05:00

9 lines
201 B
JavaScript

t = db.find7;
t.drop();
x = { "_id" : { "d" : 3649, "w" : "signed" }, "u" : { "3649" : 5 } };
t.insert(x );
assert.eq( x , t.findOne() , "A1" );
assert.eq( x , t.findOne( { _id : x._id } ) , "A2" );