Docs Menu
Docs Home
/ /

Create an Encrypted Collection and Insert Documents

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.

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.

After creating a Queryable Encryption-enabled collection, you can query the encrypted fields.

Back

Create & Query

On this page