title: Confused about MongoDB / Mongoose models
body: <p>I swear, not but a short time ago, I could access model properties directly.
  Now, as of summer 2015, it seems I have to access model properties through the _doc property, like so:</p>
  
  <p><code>model._doc.password</code> instead of <code>model.password</code></p>
  
  <p>one weird thing that is happening, is that this function to compare passwords was pretty much copied verbatim from the web:</p>
  
  <pre><code> userSchema.methods.validatePassword = function (password, cb) {
          bcrypt.compare(password, this.passwordHash, function (err, res) {
              return cb(err, res ? true : false);
          });
      };
  </code></pre>
  
  <p><code>this.passwordHash</code> should pull the passwordHash property from the model. However, when I debug, passwordHash is not a property of <code>this</code>, it is property of <code>this._doc</code>. </p>
  
  <p>Am I going crazy or did it used to be another way with Mongoose and MongoDB?</p>