2018-04-06 10:33:03 -04:00
|
|
|
// @tags: [requires_fastcount]
|
2009-06-24 14:50:59 -04:00
|
|
|
|
|
|
|
|
let t = db.basic8;
|
|
|
|
|
t.drop();
|
|
|
|
|
|
2016-03-09 12:17:50 -05:00
|
|
|
t.save({a: 1});
|
2009-06-24 14:50:59 -04:00
|
|
|
let o = t.findOne();
|
|
|
|
|
o.b = 2;
|
2016-03-09 12:17:50 -05:00
|
|
|
t.save(o);
|
2009-06-24 14:50:59 -04:00
|
|
|
|
2016-03-09 12:17:50 -05:00
|
|
|
assert.eq(1, t.find().count(), "A");
|
|
|
|
|
assert.eq(2, t.findOne().b, "B");
|