title: how to convert mongoose js model to object
body: <p>i am working with node.js and mongoosejs framwork for mongodb. I am trying to convert a mongoose model to an object, I was able to do that, but am getting only fewer elements rather than getting all. Below code which I tried.</p>
  
  <p><strong>user.js</strong></p>
  
  <pre><code>var schema = new Schema({
  name:{ type:string  },
  
  title:{ type:string, default:"mr"  }
  });
  
  
  module.exports = mongoose.model('Users', schema);
  </code></pre>
  
  <p><strong>usermanager.js</strong></p>
  
  <pre><code>var User = require(../user.js);
  
  var user = new User();
  console.log(user.toString());
  //printed as {_id:2583457assda312, title:'mr'}
  </code></pre>
  
  <p>i am expecting name key in that object. i have also tryed toObject it also giveing me the same response.
  ther is any posiblty to achive this?</p>