summaryrefslogtreecommitdiff
path: root/jstests/basic7.js
blob: 7bb0d470e82059caae2629f9bc9f791eeb2d191b (plain)
1
2
3
4
5
6
7
8
9
10
11

t = db.basic7;
t.drop();

t.save( { a : 1 } )
t.ensureIndex( { a : 1 } );

assert.eq( t.find().toArray()[0].a , 1 );
assert.eq( t.find().arrayAccess(0).a , 1 );
assert.eq( t.find()[0].a , 1 );