Sanjit Roy
Sanjit Roy

Reputation: 187

Node.js server stops working when database is changed from v2.6 to 3.0?

I have a node.js server and I was using a Mongodb v2.6. Today I have upgraded that to Mongodb v3.0 and the app has stopped responding but it still responds to v2.6. Any ideas on how to fix this? Mongolab will be upgrading all databases to v3.0.

I have also tried implementing it at modulus.io without any results. I use Mongoose with my node.js app.

Upvotes: 0

Views: 83

Answers (1)

codePrady
codePrady

Reputation: 120

Since the version of Mongoose you included in package.json isn't shared, I am hoping that needs an update too.

Here's the article where Mongoose 4.0 is said to be supporting Mongo 3.0: https://www.mongodb.com/blog/post/introducing-version-40-mongoose-nodejs-odm

Also, if you are upgrading Mongoose to 4.0, check the backwards incompatible changes and new features sections in their Release Notes. https://github.com/Automattic/mongoose/wiki/4.0-Release-Notes

Upvotes: 3

Related Questions