Docs HomeNode.js

Compatibility

MongoDB Compatibility

The following compatibility table specifies the recommended versions of the MongoDB Node.js driver for use with MongoDB.

The first column lists the driver version.

Compatibility Table Legend

IconExplanation
All features are supported.
The Driver version will work with the MongoDB version, but not all new MongoDB features are supported.
No markThe Driver version is not tested with the MongoDB version.
Node.js Driver VersionMongoDB 7.0MongoDB 6.0MongoDB 5.0MongoDB 4.4MongoDB 4.2MongoDB 4.0MongoDB 3.6MongoDB 3.4MongoDB 3.2MongoDB 3.0MongoDB 2.6
5.7
5.6
5.5
5.4
5.3
5.2
5.1
5.0
4.15
4.14
4.13
4.12
4.11
4.10
4.9
4.8
4.7
4.6
4.5
4.4
4.3
4.2
4.1
4.0
3.7 [1]
3.6
3.5
3.4
3.3
3.2.1
3.1
3.0
2.2.12
2.0.14
1.4.29
[1] When using Node.js Driver version 3.7, you must set the useUnifiedTopology flag to true for certain features.

Language Compatibility

The following compatibility table specifies the recommended versions of the MongoDB Node.js driver for use with a specific version of Node.js.

The first column lists the driver version.

Node.js Driver VersionNode.js v20.x.xNode.js v18.x.xNode.js v16.x.xNode.js v14.x.xNode.js v12.x.xNode.js v10.x.xNode.js v8.X.XNode.js v6.X.XNode.js v4.X.XNode.js v0.12.XNode.js v0.10.XNode.js v0.8.X
6.0.x [2]
5.6.x to 5.7.x
5.0.0 to 5.5.X
4.X
3.7.X
3.6.X
3.5.X
3.4.X
3.3.X
3.2.X
3.1.X
3.0.X
2.2.X
2.1.X
2.0.X
>= 1.4.18
1.4.X
[2] Version 6.0 of the Node.js driver requires Node.js v16.20.1 or later.

For more information on how to read the compatibility tables, see our guide on MongoDB Compatibility Tables.