mongocryptd $elemMatch analysis encrypts field that is not mentioned in schemaMap. This happens if a document contains 2 different fields with the same name. If one of this field is mentioned in schemaMap, $elemMatch query analysis will encrypt both of them during filter creating.
- related to
-
SERVER-69377 Support $elemMatch in query analysis
- Open