:orphan:

====================
Driver Compatibility
====================

.. default-domain:: mongodb

.. contents:: On this page
   :local:
   :backlinks: none
   :depth: 1
   :class: twocols

.. include:: /includes/driver-compatibility-caveat.rst

.. _reference-compatibility-c:

C Driver Compatibility
----------------------

.. _reference-compatibility-mongodb-c:

MongoDB Compatibility
~~~~~~~~~~~~~~~~~~~~~

.. include:: /includes/extracts/c-driver-compatibility-matrix-mongodb.rst

.. include:: /includes/mongodb-compatibility-table-c.rst

.. include:: /includes/older-server-versions-unsupported.rst

.. _reference-compatibility-language-c:

Language Compatibility
~~~~~~~~~~~~~~~~~~~~~~

.. include:: /includes/extracts/c-driver-compatibility-matrix-language.rst

.. include:: /includes/language-compatibility-table-c.rst

.. _reference-compatibility-cpp:

C++ Driver Compatibility
------------------------

.. _reference-compatibility-mongodb-cpp:

MongoDB Compatibility
~~~~~~~~~~~~~~~~~~~~~

.. include:: /includes/extracts/cpp-driver-compatibility-matrix-mongodb.rst

.. include:: /includes/mongodb-compatibility-table-cxx.rst

.. include:: /includes/older-server-versions-unsupported.rst

.. _reference-compatibility-language-cpp:

Language Compatibility
~~~~~~~~~~~~~~~~~~~~~~

.. include:: /includes/extracts/cpp-driver-compatibility-matrix-language.rst

.. include:: /includes/language-compatibility-table-cxx.rst

.. _reference-compatibility-csharp:

C#/.Net Driver Compatibility
----------------------------

.. _reference-compatibility-mongodb-csharp:

MongoDB Compatibility
~~~~~~~~~~~~~~~~~~~~~

.. include:: /includes/mongodb-compatibility-table-csharp.rst

.. _reference-compatibility-language-csharp:

Language Compatibility
~~~~~~~~~~~~~~~~~~~~~~

.. include:: /includes/extracts/csharp-driver-compatibility-matrix-language.rst

.. include:: /includes/language-compatibility-table-csharp.rst

.. _reference-compatibility-go:

Go Driver Compatibility
-----------------------

.. _reference-compatibility-mongodb-go:

MongoDB Compatibility
~~~~~~~~~~~~~~~~~~~~~

.. include:: /includes/mongodb-compatibility-table-go.rst

.. _reference-compatibility-language-go:

Language Compatibility
~~~~~~~~~~~~~~~~~~~~~~

.. include:: /includes/language-compatibility-table-go.rst

.. _reference-compatibility-java:

Java Driver Compatibility
-------------------------

.. _reference-compatibility-mongodb-java:

MongoDB Compatibility
~~~~~~~~~~~~~~~~~~~~~

.. include:: /includes/mongodb-compatibility-table-java.rst

.. include:: /includes/older-server-versions-unsupported.rst

.. [*] 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.

.. _reference-compatibility-language-java:

Language Compatibility
~~~~~~~~~~~~~~~~~~~~~~

.. include:: /includes/extracts/java-driver-compatibility-matrix-language.rst

.. include:: /includes/language-compatibility-table-java.rst

.. _reference-compatibility-node:

Node.js Driver Compatibility
----------------------------

.. _reference-compatibility-mongodb-node:

MongoDB Compatibility
~~~~~~~~~~~~~~~~~~~~~

.. include:: /includes/mongodb-compatibility-table-node.rst

.. include:: /includes/older-server-versions-unsupported.rst

.. _reference-compatibility-language-node:

Language Compatibility
~~~~~~~~~~~~~~~~~~~~~~

.. include:: /includes/extracts/node-driver-compatibility-matrix-language.rst

.. include:: /includes/language-compatibility-table-node.rst

.. _reference-compatibility-perl:

Perl Driver Compatibility
-------------------------

.. _reference-compatibility-mongodb-perl:

MongoDB Compatibility
~~~~~~~~~~~~~~~~~~~~~

.. include:: /includes/extracts/perl-driver-compatibility-matrix-mongodb.rst

.. include:: /includes/mongodb-compatibility-table-perl.rst

.. _reference-compatibility-language-perl:

Language Compatibility
~~~~~~~~~~~~~~~~~~~~~~

.. include:: /includes/language-compatibility-table-perl.rst

.. _reference-compatibility-php:

PHP Driver Compatibility
------------------------

.. _reference-compatibility-mongodb-php:

MongoDB Compatibility
~~~~~~~~~~~~~~~~~~~~~

.. include:: /includes/extracts/php-driver-compatibility-matrix-mongodb.rst

.. include:: /includes/php-mongodb-compatibility-table.rst

.. _reference-compatibility-language-php:

Language Compatibility
~~~~~~~~~~~~~~~~~~~~~~

.. include:: /includes/language-compatibility-table-php.rst

.. _reference-compatibility-python:

Python Driver Compatibility
---------------------------

.. _reference-compatibility-mongodb-python:

MongoDB Compatibility
~~~~~~~~~~~~~~~~~~~~~

.. include:: /includes/mongodb-compatibility-table-python.rst

.. include:: /includes/older-server-versions-unsupported.rst

.. _reference-compatibility-language-python:

Language Compatibility
~~~~~~~~~~~~~~~~~~~~~~

.. include:: /includes/extracts/python-driver-compatibility-matrix-language.rst

.. include:: /includes/language-compatibility-table-python.rst

.. _reference-compatibility-motor:

Motor (Python async) Driver Compatibility
-----------------------------------------

.. _reference-compatibility-mongodb-motor:

MongoDB Compatibility
~~~~~~~~~~~~~~~~~~~~~

.. include:: /includes/extracts/motor-driver-compatibility-matrix-language.rst

.. include:: /includes/mongodb-compatibility-table-motor.rst

.. include:: /includes/older-server-versions-unsupported.rst

.. _reference-compatibility-language-motor:

Language Compatibility
~~~~~~~~~~~~~~~~~~~~~~

.. include:: /includes/extracts/motor-driver-compatibility-matrix-language.rst

.. include:: /includes/language-compatibility-table-motor.rst

.. _reference-compatibility-ruby:

Ruby Driver Compatibility
-------------------------

.. _reference-compatibility-mongodb-ruby:

MongoDB Compatibility
~~~~~~~~~~~~~~~~~~~~~

.. include:: /includes/extracts/ruby-driver-compatibility-matrix-mongodb.rst

.. list-table::
   :header-rows: 1
   :stub-columns: 1
   :class: compatibility-large no-padding

   * - Ruby Driver
     - MongoDB 4.2
     - MongoDB 4.0
     - MongoDB 3.6
     - MongoDB 3.4
     - MongoDB 3.2
     - MongoDB 3.0
     - MongoDB 2.6
     - MongoDB 2.4

   * - 2.10
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|
     -

   * - 2.9
     -
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|
     -

   * - 2.8
     -
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|
     -

   * - 2.7
     -
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|
     -

   * - 2.6
     -
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|
     -

   * - 2.5
     -
     -
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|
     -

   * - 2.4
     -
     -
     -
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|

   * - 2.3
     -
     -
     -
     -
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|

   * - 2.2
     -
     -
     -
     -
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|

   * - 2.0
     -
     -
     -
     -
     -
     - |checkmark|
     - |checkmark|
     - |checkmark|

   * - 1.12
     -
     -
     -
     -
     -
     - |checkmark|
     - |checkmark|
     - |checkmark|

   * - 1.11
     -
     -
     -
     -
     -
     -
     - |checkmark|
     - |checkmark|

   * - 1.10
     -
     -
     -
     -
     -
     -
     - |checkmark|
     - |checkmark|

   * - 1.9
     -
     -
     -
     -
     -
     -
     -
     - |checkmark|

   * - 1.8
     -
     -
     -
     -
     -
     -
     -
     - |checkmark|

.. include:: /includes/older-server-versions-unsupported.rst

.. _reference-compatibility-language-ruby:

Ruby Compatibility
~~~~~~~~~~~~~~~~~~

.. include:: /includes/extracts/ruby-driver-compatibility-matrix-language.rst

.. list-table::
   :header-rows: 1
   :stub-columns: 1
   :class: compatibility-large no-padding

   * - Ruby Driver
     - Ruby 2.6
     - Ruby 2.5
     - Ruby 2.4
     - Ruby 2.3
     - Ruby 2.2
     - Ruby 2.1
     - Ruby 2.0
     - Ruby 1.9
     - Ruby 1.8.7
     - JRuby 9.2
     - JRuby 9.1
     - JRuby

   * - 2.9
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|
     -
     - |checkmark|
     - |checkmark|
     -

   * - 2.8
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|
     -
     - |checkmark|
     - |checkmark|
     -

   * - 2.7
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|
     -
     - |checkmark|
     - |checkmark|
     -

   * - 2.6
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|
     -
     - |checkmark|
     - |checkmark|
     -

   * - 2.5
     -
     -
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|
     -
     -
     -
     - |checkmark|

   * - 2.4
     -
     -
     -
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|
     -
     -
     -
     - |checkmark|

   * - 2.3
     -
     -
     -
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|
     -
     -
     -
     - |checkmark|

   * - 2.2
     -
     -
     -
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|
     -
     -
     -
     - |checkmark|

   * - 2.1
     -
     -
     -
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|
     -
     -
     -
     - |checkmark|

   * - 2.0
     -
     -
     -
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|
     -
     -
     -
     - |checkmark|

   * - 1.12 - 1.9
     -
     -
     -
     -
     -
     - |checkmark|
     - |checkmark|
     - |checkmark|
     - |checkmark|
     -
     -
     - |checkmark|

   * - 1.8
     -
     -
     -
     -
     -
     -
     - |checkmark|
     - |checkmark|
     - |checkmark|
     -
     -
     - |checkmark|

   * - 1.7 - 1.6
     -
     -
     -
     -
     -
     -
     -
     - |checkmark|
     - |checkmark|
     -
     -
     - |checkmark|

Rust Driver Compatibility
-------------------------

MongoDB Compatibility
~~~~~~~~~~~~~~~~~~~~~

.. include:: /includes/mongodb-compatibility-table-rust.rst

Language Compatibility
~~~~~~~~~~~~~~~~~~~~~~

.. include:: /includes/language-compatibility-table-rust.rst


Scala Driver Compatibility
--------------------------

.. _reference-compatibility-mongodb-scala:

MongoDB Compatibility
~~~~~~~~~~~~~~~~~~~~~

.. include:: /includes/extracts/scala-driver-compatibility-matrix-mongodb.rst

.. include:: /includes/mongodb-compatibility-table-scala.rst

.. _reference-compatibility-language-scala:

Language Compatibility
~~~~~~~~~~~~~~~~~~~~~~

.. include:: /includes/extracts/scala-driver-compatibility-matrix-language.rst

.. include:: /includes/language-compatibility-table-scala.rst

.. include:: /includes/unicode-checkmark.rst

Swift Driver Compatibility
--------------------------

MongoDB Compatibility
~~~~~~~~~~~~~~~~~~~~~

.. include:: /includes/mongodb-compatibility-table-swift.rst

Language Compatibility
~~~~~~~~~~~~~~~~~~~~~~

.. include:: /includes/language-compatibility-table-swift.rst

