Hi everyone? I'm new on mongoLab, and i have a database connected with a sandbox plan with mongodb 3.2 version. I'm getting a warning message about the upgrade to mongodb 3.4 soon. After looking deep into compatibilities changes that are needed (https://docs.mongodb.com/manual/release-notes/3.4-compatibility/), i find out i need to make sure that the Node Js driver version i'm using will be suitable with MongoDB 3.4. According to this doc https://docs.mongodb.com/ecosystem/drivers/driver-compatibility-reference/#node-js-driver-compatibility, the nodejs driver that i need is 2.2.12. Does someone know how to check the nodejs driver version in a nodejs app.
Asked
Active
Viewed 5,676 times
1 Answers
5
Check your package.json
file. Depending on what package you're using, it might be:
- mongoose
- mongoDB
- or even some of these

Lazyexpert
- 3,106
- 1
- 19
- 33
-
Thank you Lazyexpert. In the mongoose and mongodb package.json files i have "_nodeVersion": "6.0.0". Is that the nodejs driver version?? – Gus Aug 15 '17 at 14:40
-
@Gus nono, you have to check package.json in your root app folder – Lazyexpert Aug 16 '17 at 08:47
-
Got it thank you again Lazyexpert – Gus Aug 16 '17 at 13:16
-
I have installed mongodb 4.0... So the mongoDB version in `package.json` matters? – Ashh Aug 07 '18 at 18:16
-
@AnthonyWinzlet there is no mongoDB version in `package.json` you may find what driver (npm module) you're using to access mongo in `package.json` and it's version. – Lazyexpert Aug 08 '18 at 06:30
-
And if I am using mongoose to access ? then its version matters? – Ashh Aug 08 '18 at 06:37
-
@AnthonyWinzlet http://mongoosejs.com/docs/api.html – Lazyexpert Aug 08 '18 at 06:41
-
@Lazyexpert I didn't see any info about node.js driver in package.json. Can you explain little more? – Abdullah Khan Jul 04 '20 at 07:35