Zaista / cypress-mongodb

Cypress MongoDB plugin
MIT License
17 stars 8 forks source link

The new objectId change is causing me problems. #8

Closed teebu closed 2 years ago

teebu commented 2 years ago

args.pipeline._id = new ObjectId(args.pipeline._id);

This is causing me problems. Please add this as an option not force all strings to be automatically ObjectId. I rely on it to stay a string.

https://www.mongodb.com/docs/manual/reference/method/ObjectId/ image

Zaista commented 2 years ago

Hey, thanks for raising the issue. I'm fixing it atm, though it will require some overhaul to the plugin, and a major release. So it will take me a few more days. For now, please just use the older version of the plugin and I'll close this issue when the new version is released.