Using * in nested mongodb query I want to search  { "info.*.name":"a"}
I have a document below :
id : "1" 
name : "abc"
 info : Object 
   123 : Object
       name : "a" 

id : "1" 
name : "abc"
 info : Object 
   1234 : Object
       name : "a"

id : "1" 
name : "abc"
 info : Object 
   12345: Object
       name : "a"  

I want to search { "info.*.name":"a"}

you have to put it manually, that would be:
db.document.find({
   info.key.name: "any"
})

and if the key is dinamic, you will need convert it to an array by using aggregation with $objectToArray
example : https://stackoverflow.com/a/75597562/9267467