diff --git a/lib/objectid.js b/lib/objectid.js index 46aff6444..918ff3dbc 100644 --- a/lib/objectid.js +++ b/lib/objectid.js @@ -224,7 +224,7 @@ class ObjectId { */ equals(otherId) { if (otherId instanceof ObjectId) { - return this.toString() === otherId.toString(); + return this.id[11] === otherId.id[11] && this.id.equals(otherId.id); } if (