title: MongoDB Aggregation and filter
body: <p>I'm trying to find events near a location within a certain category</p>
  
  <p>Here's my code</p>
  
  <pre><code>var q=  EventModel.aggregate({
        $geoNear : {
          near: coords,
          distanceField: "distance",
          spherical:true,
          distanceMultiplier:6378,
          query : {"rubriques.id" : categorie},
          uniqueDocs: true,
          maxDistance : radius,
          limit: limit}
        });
  </code></pre>
  
  <p>Without "query" it works well, but with "query" all i get is <code>[]</code></p>
  
  <p>Any idea why ?</p>
  
  <p>Thanks a lot,
  Jeremie.</p>