title: Handlebar template access to mongo collection.find() variable in a nodejs
body: <p>I have the nodejs express script as below</p>
  
  <pre><code>app.get('/approval',function(req,res){
  
          db.open(function(err,db) {
          var collection = db.collection('form');
      collection.find({ contact: 'James Wong' }).toArray(function(err, docs) {
          console.log(docs); 
     /*It will  will give an output something like
        { _id: 53533045fec60bd941c04a22,
         contact: 'James Wong'} */
  
  
          res.render('approval.handlebars',{resultfind : docs});
             /*it will give an output as [object Object]
  
          db.close();
        });
  
      });
  </code></pre>
  
  <p>My console.log(docs) output is in JSON ARRAY format which is correct. i.e </p>
  
  <pre><code>{ _id: 53533045fec60bd941c04a22,
         contact: 'James Wong'} */
  </code></pre>
  
  <p>However when I display it in handlebartemplate by using res.render the result will be as below;</p>
  
  <pre><code>[object Object]
  </code></pre>
  
  <p>My template is below</p>
  
  <pre><code>&lt;div&gt;
  {{resultfind}}
  &lt;/div&gt;
  </code></pre>
  
  <p>I wanted to access those object properties.</p>