Library

mongo-cxx-driver r4.6.0

Versionr4.6.0
Stars★ 1,107
Released2026-09-16

C++ Driver for MongoDB

Release notes

## Added

- Support for In-Use Encryption String Indexes, replacing the experimental "text" API:
  - `mongocxx::v1::string_options` and `mongocxx::string_options`.
  - `mongocxx::v1::encrypt_options::string_opts()` and `mongocxx::options::encrypt::string_opts()`.
    - This is a distinct field from the deprecated `text_opts()`. When both are set, `string_opts` takes precedence and `text_opts` is ignored.
  - `mongocxx::v1::encrypt_options::encryption_algorithm::k_string` ("String").
  - `mongocxx::v1::encrypt_options::encryption_query_type::k_prefix` ("prefix"), `k_suffix` ("suffix"), and `k_substring` ("substring").
- Expose `atClusterTime` parameter in snapshot sessions

## Deprecated

- The In-Use Encryption "text" API, which is superseded by the "string" API above. These remain documented as experimental and may be removed in a future release:
  - `mongocxx::v1::text_options`, `mongocxx::text_options`, and `mongocxx::options::text`.
  - `mongocxx::v1::encrypt_options::text_opts()` and `mongocxx::options::encrypt::text_opts()`.
  - `mongocxx::v1::encrypt_options::encryption_algorithm::k_textPreview` ("TextPreview").
  - `mongocxx::v1::encrypt_options::encryption_query_type::k_prefixPreview`, `k_suffixPreview`, and `k_substringPreview`.

## Changed

- Bump the minimum required C Driver version to [2.5.3](https://github.com/mongodb/mongo-c-driver/releases/tag/2.5.3).

See the [full list of changes in Jira](https://jira.mongodb.org/issues/?jql=project%20%3D%20CXX%20AND%20fixVersion%20%3D%204.6.0).

## Feedback
To report a bug or request a feature, please open a ticket in the MongoDB issue management tool Jira:

- [Create an account](https://jira.mongodb.org) and login.
- Navigate to the [CXX project](https://jira.mongodb.org/browse/CXX)
- Click `Create`.

## Signature Verification
Release artifacts may be verified by using the accompanying detached signature (.asc) and the cpp-driver public key obtained from https://pgp.mongodb.com.

Share this resource


Discovered 2026-09-18 Source GitHub Archive 2026-09 →