title: Nested fields query by using mongo repository in java
body: <p>i want to get the value of Id by using mongorepository. Below example shows mondodb document</p>
  
  <pre><code>{
      "_id" : ObjectId("5baa4779f4a46b0f60a74313"),
      "_class" : "hello.mytest",
      "data" : {
          "type" : [ 
              {
                  "testId" : "Id0",
                  "usage" : "near",
                  "additionalProperties" : {}
              }, 
              {
                  "testId" : "Id1",
                  "usage" : "far",
                  "additionalProperties" : {}
              }]}
              }
  </code></pre>
  
  <p>when i try to find testId getting null value.</p>
  
  <pre><code>public interface TestRepository extends MongoRepository&lt;mytest, String&gt; {
          List&lt;data&gt; findBytestId(String string);
              }
  </code></pre>