0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00
mongodb/jstests/find3.js

11 lines
203 B
JavaScript
Raw Normal View History

2009-01-27 05:28:26 +01:00
t = db.find3;
t.drop();
for ( i=1; i<=50; i++)
t.save( { a : i } );
assert.eq( 50 , t.find().toArray().length );
assert.eq( 20 , t.find().limit(20).toArray().length );
assert(t.validate().valid);