2009-01-26 23:28:26 -05:00
|
|
|
|
2024-12-27 16:01:08 +04:00
|
|
|
// @tags: [
|
|
|
|
|
// requires_getmore,
|
|
|
|
|
// ]
|
2009-01-26 23:28:26 -05:00
|
|
|
let t = db.basic7;
|
|
|
|
|
t.drop();
|
|
|
|
|
|
2016-03-09 12:17:50 -05:00
|
|
|
t.save({a: 1});
|
2020-11-17 13:45:05 +00:00
|
|
|
t.createIndex({a: 1});
|
2009-01-26 23:28:26 -05:00
|
|
|
|
2016-03-09 12:17:50 -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);
|