MongoDB Server Version Compatibility
Below are the semver ranges representing which versions of mongoose are compatible with the listed versions of MongoDB server.
- MongoDB Server 2.4.x: mongoose
- MongoDB Server 2.6.x: mongoose
- MongoDB Server 3.0.x: mongoose
- MongoDB Server 3.2.x: mongoose
- MongoDB Server 3.4.x: mongoose
- MongoDB Server 3.6.x: mongoose
- MongoDB Server 4.0.x: mongoose
Note that Mongoose 5.x dropped support for all versions of MongoDB before 3.0.0. If you need to use MongoDB 2.6 or older, use Mongoose 4.x.
Are you on Mongoose 3.x and looking to migrate to 4.x? Check out Moving Forward with Mongoose.js on Pluralsight. This video course walks you through the new features and backwards breaking changes in Mongoose 4, so you can upgrade with confidence.