title: Accessing MongoDB collection values in JavaScript
body: <p>I am new in Meteor, and especially in MongoDB.</p>
  
  <p>I have googled a lot regarding this issue but nothing found related to this.</p>
  
  <p>So there is an app that contains two collections: <code>EventsCollection</code> and <code>RacesCollection</code> and runs on Meteor server.</p>
  
  <p>The <code>RacesCollection</code> has number of records like:</p>
  
  <pre><code>RacesCollection.insert({raceId:"r1", eventId:"e1", raceName:"Moto race 1", status:"statusDetail", mode:"modeDetail"});
  RacesCollection.insert({raceId:"r2", eventId:"e1", raceName:"Moto race 2", status:"statusDetail", mode:"modeDetail"});
  </code></pre>
  
  <p>This is the resultant collection which contains rows having <code>eventId = e1</code>  </p>
  
  <pre><code>var race = RacesCollection.find({eventId: "e1"});
  </code></pre>
  
  <p>Now what i want to do is to simply access the fields of <code>race</code> into javascript, something like <code>race.raceId</code>, <code>race.raceName</code>. How to implement this? Is there any getter method for accessing particular data field?</p>
  
  <p>And how to iterate through multiple rows of <code>race</code> in case it contains number of rows?</p>
  
  <p>Any recommendation will be appriciated.</p>