Search Encrypted Data

Search on fields encrypted with equality or range encryption. The MongoDB driver encrypts your search term and MongoDB matches against encrypted values — without ever decrypting the data.

Uses #[Encrypt(queryType: EncryptQuery::Equality)] — the driver sends encrypted ciphertext and MongoDB matches with $eq without decrypting.