title: Reading from MongoDB collection in mule
body: <p>I am reading from MongoDB collection called attributes. I am getting the results back, but I want to restrict the results based on the query parameters.</p>
  
  <p>Following is the code using which I am able to get all the records in the collections --</p>
  
  <pre><code>&lt;flow name="readFromMongoDB" doc:name="insertInMongoDB"&gt;
      &lt;vm:inbound-endpoint exchange-pattern="request-response"
          path="mdb-read-data-vm" doc:name="VM" /&gt;
      &lt;json:json-to-object-transformer
          returnClass="java.util.HashMap" doc:name="JSON to Object" /&gt;
      &lt;logger level="INFO" doc:name="Logger" message="&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; #[payload.name]" /&gt;
      &lt;mongo:find-objects config-ref="Mongo_DB"
          collection="attributes" doc:name="Find Attribute"&gt;
      &lt;/mongo:find-objects&gt;
      &lt;mongo:mongo-collection-to-json /&gt;
      &lt;logger level="INFO" doc:name="Logger" /&gt;
  &lt;/flow&gt;
  </code></pre>
  
  <p>How can I mention query attributes to filter the results?</p>