title: Iterate through mongoose find result
body: <p>I have some trouble getting out data from the result of a query in mongoose: here is my function:</p>
  
  <pre><code>getNinjas : function(res){
      var twisted = function(res){
          return function(err, data){
              if (err){
                  console.log('error occured');
                  return;
              }
              res.send('My ninjas are:\n');
              for (var i;i&lt;data.length;i++){
                  console.log(data[i].name);
              }
                              //I need to process my data one by one here
          }
      }
  
      Ninja.find({},'name skill',twisted(res));
  }
  </code></pre>
  
  <p>So if I <code>console.log(data)</code> in the getNinjas function, I get the result of my query. How can I access each record one by one? I get nothing in the console like this.</p>