title: How to create aggregate query to dump mongo collection into solr
body: <p>I created a connection to dump a mongo collection into solr, however, I was wondering if there is any way I can create a query passing an aggregate.
  Ex:</p>
  
  <p>In my data-config.xml</p>
  
  <pre><code>&lt;entity
          processor = "MongoEntityProcessor"
           query = "{total: {$ gte: 0}}"
           collection = "order"
           datasource = "test_development"
           transformer = "MongoMapperTransformer"
           name = "test"&gt;
  </code></pre>
  
  <p>Could I do that?</p>
  
  <pre><code>&lt;entity
           processor = "MongoEntityProcessor"
           query = "aggregate([{$ project: {_id: 1, total: 1}}])"
           collection = "order"
           datasource = "test_development"
           transformer = "MongoMapperTransformer"
           name = "test"&gt;
  </code></pre>