title: Mongoose/MongoDB result fields appear undefined in Javascript
body: <p>Is there something that I'm missing that would allow item to log as an object with a parameter, but when I try to access that parameter, it's undefined?</p>
  
  <p>What I've tried so far:</p>
  
  <ul>
  <li><code>console.log(item)</code> => <code>{ title: "foo", content: "bar" }</code> , that's fine</li>
  <li><code>console.log(typeof item)</code> => object</li>
  <li><code>console.log(item.title)</code> => "undefined"</li>
  </ul>
  
  <p>I'll include some of the context just in case it's relevant to the problem.</p>
  
  <pre><code>var TextController = function(myCollection) {
    this.myCollection = myCollection
  }
  
  TextController.prototype.list = function(req, res, next) {
    this.myCollection.find({}).exec(function(err, doc) {
      var set = new Set([])
      doc.forEach(function(item) {
        console.log(item)         // Here item shows the parameter
        console.log(item.title)   // "undefined"
        set.add(item.title)       
      })
      res.json(set.get());
    })
  }
  </code></pre>
  
  <p>Based on suggestion I dropped <code>debugger</code> before this line to check what item actually is via the node repl debugger.  This is what I found : <a href="http://hastebin.com/qatireweni.sm">http://hastebin.com/qatireweni.sm</a></p>
  
  <p>From this I tried <code>console.log(item._doc.title)</code> and it works just fine.. So, this seems more like a mongoose question now than anything.</p>
  
  <p>There are questions similar to this, but they seem to be related to 'this' accessing of objects or they're trying to get the object outside the scope of the function.  In this case, I don't think I'm doing either of those, but inform me if I'm wrong. Thanks</p>