title: How to QUERY a deeply nested json document?
body: <p>I have imported a huge json file into mongoDB. It has imported as one whole document (with one _id). My json looks like this:</p>
  
  <pre><code>       {
    "_id": ObjectId("bas8adsfa832034821"),
    "Spele": {
      "Laiks": "2017/01/11",
      "Skatitaji": 6740,
      "Vieta": "Newlands Stadium",
      "T": [
        {
          "Uzvards": "Antamo",
          "Vards": "Dennis"
        },
        {
          "Uzvards": "Prompa",
          "Vards": "Pedro"
        }
      ],
      "Komanda": [
        {
          "Nosaukums": "Barcelona",
          "Speletaji": {
            "Speletajs": [
              {
                "Loma": "V",
                "Nr": 16,
                "Uzvards": "Sam",
                "Vards": "Sidney"
              },
              {
                "Loma": "A",
                "Nr": 17,
                "Uzvards": "Cisovsky",
                "Vards": "Marian"
              }
            ]
          }
        }
      ]
    }
  }
  </code></pre>
  
  <p>So with every query I try, it returns the whole document. Setting specific parameters don't help like: <code>db.games.find({"Spele.Komanda.Speletaji.Speletajs.Nr" : 16})</code></p>
  
  <p>When I'd expect it to return </p>
  
  <pre><code>{ "Loma" : "V",
     "Nr" : 16,
     "Uzvards" : "Sam"
     "Vards" : ""Sidney"
  }
  </code></pre>
  
  <p>But it returns the whole document instead. Maybe I'm not using the query right, or I have to provide every nested document with _id, but I don't know how. I can use mongo shell or PHP to do this.</p>