title: Selecting particular fields in MongooseJs
body: <p>I have a NodeJS application with Mongoose ODM.
  I want to select three particular fields from a collection.
  Example my collection is "Users" having fields '_id','username','email','usertype','password'...
  I want to select only 'username','email'&amp;'usertype' .
  This was <strong>my code</strong></p>
  
  <pre><code> var query = models.User.find({}).select('UserName', 'Email', 'UserType');
  </code></pre>
  
  <p>This was working fine with mongoose 2 version,I updated to Mongodb 2.2 and Mongoose 3.3.1.
  Now I am getting error</p>
  
  <pre><code>500 TypeError: Invalid select() argument. Must be a string or object.
  </code></pre>
  
  <p>Can anyone please suggest a solution?</p>