Queryable Encryption prefix, suffix, and substring queries are available in public preview in MongoDB 8.2. Do not enable these query types in production. Public preview functionality will be incompatible with the GA feature, and you will have to drop any collections that enable these queries.
This page summarizes the tasks required to set up your MongoDB deployment and your development environment for Queryable Encryption.
Enable Queryable Encryption
1
Install a compatible MongoDB driver and dependencies
Use Queryable Encryption
After you install a Queryable Encryption driver and libraries, create a Customer Master Key, and create your application, you can start encrypting and querying data. See Overview: Use Queryable Encryption for instructions.