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.
Read the Overview: Enable Queryable Encryption section to set up your development environment and data keys, then the Overview: Use Queryable Encryption section to learn how to use Queryable Encryption with your preferred Key Management System.
To learn how to use Queryable Encryption with a local key (not for production), see the Queryable Encryption Quick Start.
To learn how to use explicit encryption with Queryable Encryption, read Use Explicit Encryption.
Each tutorial provides a sample application in multiple languages for each supported Key Management System.
Code samples for specific language drivers: