nedb-promises
nedb-promises copied to clipboard
Add `updateOne` and `updateMany` over `update`
Hey,
I'm using nedb-promises for my tests, whereas live I'm using mongodb, recent versions of mongo have started throwing errors when using update:
(node:76674) [MONGODB DRIVER] Warning: collection.update is deprecated. Use updateOne, updateMany, or bulkWrite instead. (Use
node --trace-warnings ...to show where the warning was created)
Without over engineering some alias for in my codebase I wondered if this package should be brought up to date. I'm happy to contribute if there are contribution guidelines.
Thoughts?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Bump
Hi all! I'm sorry for the idle time, I hope you've been playing World of Tanks in the meantime (jk). Bad jokes aside, I hear you and today I released a new version on NPM that contains a couple of new methods:
insertOneinsertManyupdateOneupdateManydeleteOnedeleteMany
I hope those solve the issue!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.