title: MongoRepository findByThisAndThat custom @Query with multiple parameters
body: <p>I am trying to run this query</p>
  
  <pre><code>{campaignId: ObjectId('5a6b11e806f0252e1408e379'),'options.path': 'NT'}
  </code></pre>
  
  <p>it works perfectly in Compass, but when I try to add in MongoRepository interface like below:</p>
  
  <pre><code>@Query("{ 'campaignId': ObjectId(?0), 'options.path': ?1})")
  public Dialog findByCampaignIdAndPath(String campaignId, String path);
  </code></pre>
  
  <p>I get this exception:</p>
  
  <blockquote>
    <p>nested exception is com.mongodb.util.JSONParseException:<br>
    @Query("{ 'campaignId': ObjectId(?0), 'options.path': ?1})")</p>
  </blockquote>
  
  <p>Using spring-boot version <strong>1.5.9.RELEASE</strong>, not the buggy <a href="http://forum.spring.io/forum/spring-projects/data/nosql/101818-mongorepository-json-query-parse-exception" rel="noreferrer">version</a> </p>
  
  <p>EDIT1: specified the exact id name, as suggested in comments</p>
  
  <p>EDIT2: Here is my Dialog class</p>
  
  <pre><code>@Getter     
  @Setter
  @Document(collection = "Dialog")
  public class Dialog {
      @Id
      public String id;
      private DBRef campaignId;
      private Message message;
      private List&lt;Option&gt; options;
  
      public Dialog(final Message message, final List&lt;Option&gt; options) {
          this.message = message;
          this.options = options;
      }
  }
  </code></pre>