Docs Menu

Docs HomeView & Analyze DataMongoDB Compass

Create a Collection with Queryable Encryption

On this page

  • Procedure
  • Restrictions and Limitations

Queryable Encryption allows you to encrypt a subset of fields in your collection.


From the Collections screen, click the Create Collection button.


Check the Queryable Encryption option.


Specify which fields should be encrypted and whether they should be queryable.

The following fields must be used if no existing keyId was specified for at least one encrypted field, and have no effect otherwise:


Your collection will be marked by a Queryable Encryption badge.

  • Your deployment must be connected using In-Use Encryption to encrypt your collection using Queryable Encryption.

  • Custom collation is the only Advanced Collection Option that can be used alongside Queryable Encryption.

← Create a Clustered Collection