Queryable Encryption equality and range queries are fully supported in production. Prefix, suffix, and substring queries are only available in public preview in MongoDB 8.2. Do not enable these query types in production. GA functionality of prefix, suffix and substring query types will be incompatible with the preview feature. To learn more, see Supported Query Types.
Overview
This guide shows you how to create a Queryable Encryption-enabled collection and insert a document with encrypted fields.
After you complete the steps in this guide, you should be able to create an encrypted collection and insert a document with fields that are encrypted with your Customer Master Key.
Before You Start
Create your Queryable Encryption-enabled application before creating an encrypted collection.
If you are using explicit encryption, you must also create a unique Data Encryption Key for each encrypted field in advance. For more information, see Encryption Keys and Key Vaults.
Procedure
Next Steps
After creating a Queryable Encryption-enabled collection, you can query the encrypted fields.