williamkapke / mongo-mock

Let's pretend we have a real MongoDB
MIT License
240 stars 74 forks source link

sift.compare stringifies ObjectIds with .toHexString() #88

Closed dir01 closed 5 years ago

dir01 commented 5 years ago

instead of .str, which is an internal implementation detail of bson-objectid's ObjectId. This prevents incorrect equality of ObjectIds imported from bson module in a case when their timestamps are equal

dir01 commented 5 years ago

closing as now it contains undesirable commits