title: MongoDB aggregation with Java driver
body: <p>I need your help for using MongoDB aggregation framework with java driver.
  I don't understand how to write my request, even with <a href="http://docs.mongodb.org/getting-started/java/aggregation/" rel="noreferrer">this documentation</a>.</p>
  
  <p>I want to get the 200 oldest views from all items in my collection. Here is my mongo query (which works like I want in console mode):</p>
  
  <pre><code>db.myCollection.aggregate(
      {$unwind : "$views"},
      {$match : {"views.isActive" : true}},
      {$sort : {"views.date" : 1}},
      {$limit : 200},
      {$project : {"_id" : 0, "url" : "$views.url", "date" : "$views.date"}}
  )
  </code></pre>
  
  <p>Items in this collection have one or many views.
  My question is not about the request result, I want to know the java syntaxe.</p>