Automattic / mongoose

MongoDB object modeling designed to work in an asynchronous environment.
https://mongoosejs.com
MIT License
26.98k stars 3.85k forks source link

Mongodb 8 new bulkwrite for multiple collections #15028

Open mete89 opened 1 week ago

mete89 commented 1 week ago

Prerequisites

Mongoose version

8.8.1

Node.js version

20

MongoDB version

8

Operating system

Linux

Operating system version (i.e. 20.04, 11.3, 10)

No response

Issue

Is there any example on how to use new bulkWrite which works on multiple collections? https://www.mongodb.com/docs/manual/reference/command/bulkWrite/#mongodb-dbcommand-dbcmd.bulkWrite

vkarpov15 commented 1 week ago

We don't currently have support for that, nor for db.aggregate. We need to add that.