title: How I can get the second record from mongodb using WSO2 DSS?
body: <p>I have connected the MongoDB successfully and now have also accessed the <code>mongodb</code> records using <code>WSO2</code> <code>DSS</code> <code>tryit</code> tool.  Here is what I received while accessing the records:  </p>
  
  <p><a href="https://i.stack.imgur.com/3HTZL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3HTZL.png" alt="Mongo output with DSS"></a></p>
  
  <p>As you see I get the output as:  </p>
  
  <pre><code> &lt;data&gt;{ "_id" : { "$oid" : "589d96d841a427c4389a38d5"} , "domain" : "yahoo.com" , "emails" : [ { "email" : "fghj"} , { "email" : "dfghjk"}]}&lt;/data&gt;
     &lt;data&gt;{ "_id" : { "$oid" : "589d993a41a427c4389a38d8"} , "domain" : "yahoo.com" , "emails" : [ { "email" : "fghj"} , { "email" : "dfghjk"}]}&lt;/data&gt;
  </code></pre>
  
  <p>As you see there is <code>_id</code> in the output. I intent to remove it. But could not.   </p>
  
  <p>The query I placed in WSO2 DSS is like this:  </p>
  
  <pre><code>collect.find({"domain":#},{"_id":0})
  </code></pre>
  
  <p>Where <code>collect</code> is the name of my collect of mongodb.     </p>
  
  <p>Here s the json structure that I have placed in the ooutput mapping area on WSO2 DSS:   </p>
  
  <pre><code>{"entries":{"data":$document}}
  </code></pre>
  
  <p>I do not understand what to do in order to exclude or neglect the <code>_id</code> field and get only the domain part as it is in my output window.<br>
  Kindly suggest me what I can do to make my work done.</p>