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);