This should handle translation of the query but also fail if the distinct key is found to be encrypted with a non-static keyId (e.g. keyId is a JSON pointer to another field in the document).
- causes
-
SERVER-40270 Distinct command no longer supports $comment
- Closed
- depends on
-
SERVER-39233 [FLE] Implement method for replacing elements in a MatchExpression with an encryption placeholder
- Closed
- is depended on by
-
SERVER-39258 Handle non-simple collation in commands sent to mongocryptd
- Closed