How can I query this nested json structure in order to find documents that contain "A"?
"categories":[{"id":12,"values":[["A","B","C"]]},{"id":17,"values":[["D","E","F"]]}]
So far, I only managed to get to the id value with
db.coll.find( {categories: { $elemMatch: { id: 12 }}} )