summaryrefslogtreecommitdiff
path: root/jstests/core/objid2.js
blob: 247843b587b3f654cb49a204f35e41a51fc03271 (plain)
1
2
3
4
5
6
7
t = db.objid2;
t.drop();

t.save({_id: 517, a: "hello"});

assert.eq(t.findOne().a, "hello");
assert.eq(t.findOne()._id, 517);