Mongo db - Querying nested array and objects

Viewed 29034

I have the following document structure:

{
   "_id":"12345",
   "value":{
      "T":0,
      "v":[
         {
            "name":"JW",
            "cost":100
         }
      ]
   }
}

How do I query the name key? I tried the dot notation but without luck (I think it works for only two levels)

2 Answers
Related