Fix This Page
Navigation

Driver Compatibility

C Driver Compatibility

MongoDB Compatibility

The following compatibility table specifies the recommended version(s) of the MongoDB C driver for use with a specific version of MongoDB.

The first column lists the driver version(s).

C Driver Version MongoDB 2.4 MongoDB 2.6 MongoDB 3.0 MongoDB 3.2 MongoDB 3.4
Version 1.5
Version 1.3  
Version 1.1.0    
Version 1.0.0    

The driver does not support older versions of MongoDB.

Language Compatibility

The following compatibility table specifies the recommended version(s) of the MongoDB C driver for use with a specific version of C.

The first column lists the driver version(s).

C Driver Versions C89 C99 C11
All Versions

C++ Driver Compatibility

MongoDB Compatibility

The following compatibility table specifies the recommended version(s) of the MongoDB C++ driver for use with a specific version of MongoDB.

The first column lists the driver version(s).

C++ Driver Version MongoDB 2.4 MongoDB 2.6 MongoDB 3.0 MongoDB 3.2 MongoDB 3.4
mongocxx 3.1.x
mongocxx-3.0.x  
legacy-1.1.x  
legacy-1.0.x    

The driver does not support older versions of MongoDB.

Language Compatibility

The following compatibility table specifies the recommended version(s) of the MongoDB C++ driver for use with a specific version of C++.

The first column lists the driver version(s).

C++ Driver Version C++03 C++11 C++14
mongocxx-3.x  
legacy-1.x

C#/.Net Driver Compatibility

MongoDB Compatibility

The following compatibility table specifies the recommended version(s) of the MongoDB C#/.NET driver for use with a specific version of MongoDB.

The first column lists the driver version(s).

C#/.NET Driver Version MongoDB 2.4 MongoDB 2.6 MongoDB 3.0 MongoDB 3.2 MongoDB 3.4
Version 2.3
Version 2.2  
Version 2.0    
Version 1.11  
Version 1.10    

The driver does not support older versions of MongoDB.

Language Compatibility

The following compatibility table specifies the recommended version(s) of the MongoDB C#/.NET driver for use with a specific version of .NET.

The first column lists the driver version(s).

Driver Version .NET 3.5 .NET 4.0 .NET 4.5 .NET Core
Version 2.3    
Version 2.2      
Version 2.0      
Version 1.11  
Version 1.10  

Java Driver Compatibility

MongoDB Compatibility

The following compatibility table specifies the recommended version(s) of the MongoDB Java driver for use with a specific version of MongoDB.

The first column lists the driver version(s).

Java Driver Version MongoDB 2.4 MongoDB 2.6 MongoDB 3.0 MongoDB 3.2 MongoDB 3.4
Version 3.4
Version 3.3  
Version 3.2  
Version 3.1    
Version 3.0    
Version 2.14 [*]  
Version 2.13    
Version 2.12      
Version 2.11        

The driver does not support older versions of MongoDB.

[*]The 2.14 driver does not support all MongoDB 3.2 features (e.g., read concern); however, if you are currently on a version 2.x driver and would like to run against MongoDB 3.2 but cannot upgrade to driver version 3.2, use the 2.14 driver.

Language Compatibility

The following compatibility table specifies the recommended version(s) of the MongoDB Java driver for use with a specific version of Java.

The first column lists the driver version(s).

Java Driver Version Java 5 Java 6 Java 7 Java 8
Version 3.4  
Version 3.3  
Version 3.2  
Version 3.1  
Version 3.0  
Versions >= 2.7

Node.js Driver Compatibility

MongoDB Compatibility

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

The first column lists the driver version(s).

Node.js Driver MongoDB 2.4 MongoDB 2.6 MongoDB 3.0 MongoDB 3.2 MongoDB 3.4
>=2.2.12
>=2.0.14    
>=1.4.29    
1.4.X      
1.3.X        
1.2.X        

The driver does not support older versions of MongoDB.

Language Compatibility

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

The first column lists the driver version(s).

Node.js Driver Node.js v0.8.X Node.js v0.10.X Node.js v0.12.X Node.js v4.X.X Node.js v6.X.X
2.2.X
2.1.X
2.0.X
>=1.4.18    
1.4.X      
1.3.X      
1.2.X      

Perl Driver Compatibility

MongoDB Compatibility

The following compatibility table specifies the recommended version(s) of the MongoDB Perl driver for use with a specific version of MongoDB.

The first column lists the driver version(s).

Perl Driver MongoDB 2.4 MongoDB 2.6 MongoDB 3.0 MongoDB 3.2 MongoDB 3.4
1.6.x
1.4.x  
1.2.x  
1.0.x    

The driver does not support older versions of MongoDB.

Language Compatibility

The following compatibility table specifies the recommended version(s) of the MongoDB Perl driver for use with a specific version of Perl.

The first column lists the driver version(s).

Perl Driver Version 5.10 5.12 5.14 5.16 5.18 5.20 5.22 5.24
1.6.x
1.4.x
1.2.x
1.0.x

PHP Driver Compatibility

MongoDB Compatibility

The following compatibility table specifies the recommended version(s) of the MongoDB PHP driver for use with a specific version of MongoDB.

The first column lists the driver version(s).

In the table below, mongodb and mongo refer to the new and legacy MongoDB PHP driver, respectively. PHPLIB refers to the userland library.

PHP Driver MongoDB 2.4 MongoDB 2.6 MongoDB 3.0 MongoDB 3.2 MongoDB 3.4
PHPLIB 1.1 + mongodb-1.2
PHPLIB 1.0 + mongodb-1.1  
mongodb-1.1  
mongodb-1.0    
mongo-1.6    
mongo-1.5      
mongo-1.4      
mongo-1.3        

The driver does not support older versions of MongoDB.

Language Compatibility

The following compatibility table specifies the recommended version(s) of the MongoDB PHP driver for use with a specific version of PHP.

The first column lists the driver version(s).

In the table below, mongodb and mongo refer to the new and legacy MongoDB PHP driver, respectively.

PHP Driver PHP 5.3 PHP 5.4 PHP 5.5 PHP 5.6 PHP 7.0 PHP 7.1 HHVM 3.12 HHVM 3.15
mongodb-1.2  
mongodb-1.1    
mongodb-1.0        
mongo-1.6        
mongo-1.5        
mongo-1.4          
mongo-1.3          

Python Driver Compatibility

MongoDB Compatibility

The following compatibility table specifies the recommended version(s) of the MongoDB Python driver for use with a specific version of MongoDB.

The first column lists the driver version(s).

Python Driver MongoDB 2.4 MongoDB 2.6 MongoDB 3.0 MongoDB 3.2 MongoDB 3.4
3.4
3.3  
3.2  
3.1    
3.0    
2.9    
2.8    
2.7      
2.6        
2.5        

The driver does not support older versions of MongoDB.

Language Compatibility

The following compatibility table specifies the recommended version(s) of the MongoDB Python driver for use with a specific version of Python.

The first column lists the driver version(s).

Python 2 Compatibility

Python Driver Python 2.4 Python 2.5, Jython 2.5 Python 2.6 Python 2.7, PyPy
3.4    
3.3    
3.2    
3.1    
3.0    
2.9
2.8
2.7
2.6
2.5
2.4
2.3
2.2

Python 3 Compatibility

Python Driver Python 3.1 Python 3.2 PyPy3 Python 3.3 Python 3.4 Python 3.5
3.4    
3.3    
3.2  
3.1  
3.0    
2.9
2.8  
2.7  
2.6  
2.5    
2.4    
2.3      
2.2      

Note

  • Jython 2.5 is a Python 2.5-compatible alternative interpreter.
  • PyPy is a Python 2.7 and 3.2-compatible alternative interpreter.

Motor Driver Compatibility

MongoDB Compatibility

The following compatibility table specifies the recommended version(s) of the Motor driver for use with a specific version of Python.

The first column lists the driver version(s).

Motor Driver MongoDB 2.4 MongoDB 2.6 MongoDB 3.0 MongoDB 3.2 MongoDB 3.4
1.0
0.7  
0.6    
0.5    
0.4    
0.3      
0.2      
0.1        
  • Motor 1.0 wraps PyMongo 3.3+
  • Motor 0.7 wraps PyMongo >=2.9.4 and <3.0
  • Motor 0.6 wraps PyMongo 2.8
  • Motor 0.5 wraps PyMongo 2.8
  • Motor 0.4 wraps PyMongo 2.8
  • Motor 0.3 wraps PyMongo 2.7.1
  • Motor 0.2 wraps PyMongo 2.7.0
  • Motor 0.1 wraps PyMongo 2.5.0

The driver does not support older versions of MongoDB.

Language Compatibility

The following compatibility table specifies the recommended version(s) of the Motor driver for use with a specific version of Python.

The first column lists the driver version(s).

Motor Driver Python 2.5 Python 2.6 Python 2.7 Python 3.3 Python 3.4 Python 3.5
1.0  
0.7  
0.6  
0.5  
0.4    
0.3    
0.2      
0.1    
  • Motor 1.0 wraps PyMongo 3.3+
  • Motor 0.7 wraps PyMongo >=2.9.4 and <3.0
  • Motor 0.6 wraps PyMongo 2.8
  • Motor 0.5 wraps PyMongo 2.8
  • Motor 0.4 wraps PyMongo 2.8
  • Motor 0.3 wraps PyMongo 2.7.1
  • Motor 0.2 wraps PyMongo 2.7.0
  • Motor 0.1 wraps PyMongo 2.5.0

Note

  • Motor version 0.5 and earlier requires Tornado, and supports the same version of Python as its supported Tornado versions do.
  • For asyncio support, Motor requires Python 3.4+, or Python 3.3 with the asyncio package from PyPI.
  • PyPy is not supported as it runs Motor code slowly.
  • Motor does not support Jython or Windows.

Ruby Driver Compatibility

MongoDB Compatibility

The following compatibility table specifies the recommended version(s) of the MongoDB Ruby driver for use with a specific version of MongoDB.

The first column lists the driver version(s).

Ruby Driver MongoDB 2.4 MongoDB 2.6 MongoDB 3.0 MongoDB 3.2 MongoDB 3.4
2.4
2.3  
2.2  
2.1    
2.0    
1.12    
1.11      
1.10      
1.9        
1.8        

The driver does not support older versions of MongoDB.

Language Compatibility

The following compatibility table specifies the recommended version(s) of the MongoDB Ruby driver for use with a specific version of Ruby.

The first column lists the driver version(s).

Ruby Driver Ruby 1.8.7 Ruby 1.9 Ruby 2.0 Ruby 2.1 Ruby 2.2 Ruby 2.3 JRuby
2.4  
2.3  
2.2  
2.1    
2.0      
1.9 - 1.12    
1.8      
1.7        
1.6        

Scala Driver Compatibility

MongoDB Compatibility

The following compatibility table specifies the recommended version(s) of the Mongo Scala driver for use with a specific version of MongoDB.

The first column lists the driver version(s).

Scala Driver MongoDB 2.4 MongoDB 2.6 MongoDB 3.0 MongoDB 3.2 MongoDB 3.4
1.2
1.1  
1.0    

The driver does not support older versions of MongoDB.

Language Compatibility

The following compatibility table specifies the recommended version(s) of the Mongo Scala driver for use with a specific version of Scala.

The first column lists the driver version(s).

Casbah Scala 2.11
1.0
1.1

Casbah Compatibility

MongoDB Compatibility

The following compatibility table specifies the recommended version(s) of the Casbah for use with a specific version of MongoDB.

The first column lists the driver version(s).

Casbah MongoDB 2.4 MongoDB 2.6 MongoDB 3.0 MongoDB 3.2
3.1
3.0  
2.8  
2.7    
2.6      

The driver does not support older versions of MongoDB.

Language Compatibility

The following compatibility table specifies the recommended version(s) of the Casbah for use with a specific version of Scala.

The first column lists the driver version(s).

Casbah Scala 2.8 Scala 2.9 Scala 2.10 Scala 2.11
3.1    
3.0    
2.8  
2.7  
2.6    
2.5    
2.4