Groups
Sign in
Groups
node-mongodb-native
Conversations
About
Send feedback
Help
Errors in new mongodb release
41 views
Skip to first unread message
José Carlos Ramalho
unread,
Dec 7, 2017, 5:47:30 AM
12/7/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to node-mongodb-native
The new driver version does not work.
When we try something like: db.collection('col')...
Method collection is not working.
We have changed to the previous version and everything runs as expected...
jcr
Andres Kalle
unread,
Jan 3, 2018, 1:20:26 PM
1/3/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to node-mongodb-native
There have been breaking changes to the API in v3.x:
https://github.com/mongodb/node-mongodb-native/blob/3.0.0/CHANGES_3.0.0.md#api-changes
Instead of getting a db object from connect(), you now get a client object instead and need to call
client.db('test')
to get a db object. You'll need to pass in a database name as the parameter.
Reply all
Reply to author
Forward
0 new messages