title: Mongo DB query in java
body: <p>I have to write a complex mongo query using java but am not able to do it.</p>
  
  <p>The mongo query looks like this:</p>
  
  <pre><code>db.video.findOne( { 
      $or: [ 
          { key1: { $in : [764] } }, 
          { key2: {$in : [list2] } }, 
          { $and [ { key2 : 3}, {key4:67} ] } 
      ]
  })
  </code></pre>
  
  <p>I have to write the above query using the QueryBuilder class.  In what way can I do it?</p>
  
  <p>Thanks</p>