mongo
mongo copied to clipboard
Implement `db.collection.bulkWrite()`
Are there plans on implementing the db.collection.bulkWrite()
functionality in one of the next releases?
I ran into a case where I had to update some of the same types of documents but with different fields and different values for each field.
I resorted to using a for a loop now but the cleaner and more efficient way would be to write them in a bulk.
Thank you for the consideration!
There is no precise plan, we will certainly consider you if you need it. If you canβt wait, you can implement it yourself and submit a PR. The current architecture extension is very easy
bulkWrite
is the top missing feature in this library, hope it will become a priority for the team and be implemented π€π»
any news on this ? I'm porting a library currently using it
@Plawn try import from npm:mongodb
@erfanium thanks ! just used it, it worked well