summaryrefslogtreecommitdiff
path: root/jstests/core/find3.js
blob: 42c06065e9e94f56cfec42a1c118c7499ae3fe09 (plain)
1
2
3
4
5
6
7
8
9
10
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);