Skip to content

Conversation

unverifiedchaos
Copy link

In version 2.x of the MongoDB native NodeJS driver you would get the database object as an argument to the connect callback stating "db.collection is not defined"
instead you can add a client object containing the database object for in my case 'testdatabase'
refer to this
https://github.com/mongodb/node-mongodb-native

In version 2.x of the MongoDB native NodeJS driver you would get the database object as an argument to the connect callback stating "db.collection is not defined"
instead you can add a client object containing the database object for in my case 'testdatabase'
refer to this
https://github.com/mongodb/node-mongodb-native
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant