I think I really misunderstand something about data encryption. This guide (https://docs.mongodb.com/manual/core/security-client-side-encryption/#randomized-encryption) says the following:
"Encrypting the personal_information and phone_numbers fields using the randomized encryption algorithm encrypts the entire object. While this protects all fields nested under those fields, it also prevents querying against those nested fields.
For sensitive fields that are used in reading operations, applications must use Deterministic Encryption for improved read support on encrypted fields."
The guide mainly talks about using a randomized algorithm vs using a deterministic algorithm. I think I understand the differences, using a random algorithm would create different outputs for the same input, and using a deterministic algorithm creates the same output for the same input all the time. But why would you want to store anything that you don't want to or can not query later? Why would you then use the random algorithm?