I have a couch db filled with entries in this form
{
...
"templates" :[
{"template_id":"1"}
{"template_id":"2"}
{"template_id":"3"}
]
}
I am trying to write a mango query that will find all entries that have templates that contains an object with a specific template_id. I know that it is possible with views but I want to use a mango query if possible