Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

Using mongdb nodejs driver 4 #42

Open
eugeniop opened this issue Jul 26, 2021 · 2 comments
Open

Using mongdb nodejs driver 4 #42

eugeniop opened this issue Jul 26, 2021 · 2 comments

Comments

@eugeniop
Copy link
Contributor

It looks like in the new driver, the interface of results for an insertMany operation has changed:

callback(null, '' + results.ops[0]._id)

Instead of an array, it is an object. This works:

callback(null, '' + results.insertedIds["0"]._id)
@mhassan1
Copy link

mhassan1 commented Mar 7, 2022

I've just published fork mongodb-queue-up with support for mongodb@4.

@FiveOFive
Copy link

Support for mongo nodejs driver 4 would be great. @chilts - are you around to take a look at the pull request for this? - #45

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants