You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[MONGODB DRIVER] Warning: collection.remove is deprecated. Use deleteOne, deleteMany, or bulkWrite instead.
I can see that it is triggerd from the xolvio:cleaner package by setting the NODE_OPTIONS="--trace-warnings" environment variable:
The text was updated successfully, but these errors were encountered:
We're grateful for this package and it's a "classic" in our meteor setup, so we're pretty much used to it just doing what it does! Would be cool if someone could have a look, I don't have the time to investigate this currently.
If it's not possible to fix at all, eventually maybe we can do a fork + MR, but it might take some time.
Not sure how the package version should change with this? Go up to 0.5.0 or 1.0.0? So that apps possibly using an older version of Meteor and MongoDB would stay on 0.4.0.
Thank you @jrkinclus for doing the work to figure that out. I've made a fork with your change, which works for me. The fork also exports the resetDatabase function, since I'm using it as an NPM module.
I'll submit a pull request, but in the meanwhile, feel free to use it if you'd like.
The Title pretty much describes it.
I get a warning on the server console that says:
[MONGODB DRIVER] Warning: collection.remove is deprecated. Use deleteOne, deleteMany, or bulkWrite instead.
I can see that it is triggerd from the
xolvio:cleaner
package by setting theNODE_OPTIONS="--trace-warnings"
environment variable:The text was updated successfully, but these errors were encountered: