title: spring-data-mongodb: how to find document by passing random attribute and its value
body: <p>I have below document in my mongodb.</p>
  
  <pre><code>{
      "_id" : "840e922e-05e0-4e4d-b574-303a72425bdd",
      "_class" : "com.document.domain.Doc",
      "type" : "User",
      "name" : "steven",
      "index" : 0,
      "data" : "This is sample user",
      "properties" : {
          "displayName" : "steven",
          "lastName" : "smith"
      },
      "tags" : [ 
          "tag1", 
          "tag2"
      ],
      "categories" : [ 
          "category1", 
          "category2"
      ]
  }
  </code></pre>
  
  <p>Now I want to retrieve document by passing any random attribute from above json.</p>
  
  <pre><code>Example: If I pass "type" as a key and "User" as value
           If I pass "name" as a key and "steven" as value
  </code></pre>
  
  <p>Like this key can be any random attribute from JSON and value will be its associates value, then it should return me that document.</p>
  
  <p>I am trying below Query:</p>
  
  <pre><code>@Query("{'property':?0,'property':?1}")
  List&lt;Doc&gt; findByKeyAndValue(String key, String value);
  </code></pre>
  
  <p>But no luck.</p>
  
  <p>Thanks in advance.</p>