Docs Menu

Docs HomeMongoDB 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.

1

From the Collections screen, click the Create Collection button.

2
3

Check the Queryable Encryption option.

4

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:

5

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 CollectionCreate a Time Series Collection →