Add approximatelyEqual (toObject({depopulate: 1}), not compare subdoc._id) To the array of sub-documents did not depopulate when set(). Изменён ObjectId.prototype.cast Not to depopulate when set(). Improved utils.deepEqual()