Files
mongo/jstests/core/query/basic7.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
220 B
JavaScript
Raw Normal View History

2009-01-26 23:28:26 -05:00
// @tags: [
// requires_getmore,
// ]
2009-01-26 23:28:26 -05:00
let t = db.basic7;
t.drop();
t.save({a: 1});
t.createIndex({a: 1});
2009-01-26 23:28:26 -05:00
assert.eq(t.find().toArray()[0].a, 1);
assert.eq(t.find().arrayAccess(0).a, 1);
assert.eq(t.find()[0].a, 1);