title: How can i make mongoose return objectID?
body: <p>Im  trying to get mongoose to return de objectID of this Schema. <a href="https://i.stack.imgur.com/9mHMf.png" rel="nofollow noreferrer">Result in here.</a> <a href="https://i.stack.imgur.com/QHfSd.png" rel="nofollow noreferrer">Schema in DB</a></p>
  
  <pre><code>const UserSchema = new Schema({
      name: { type: String, required: true },
      email: { type: String, unique: true, required: true },
      password: { type: String, required: true, hide: true },
      role: { type: String, required: true }, // admin, tec, user
      requests: [{ type: Schema.Types.ObjectId, ref: 'Request' }]
  });
  </code></pre>
  
  <p>This is my query.</p>
  
  <pre><code>User.find(function (err, users) {
              if (err) {
                  next(err);
              } else {
                  res.json(users);
              }
          })
  </code></pre>
  
  <p>Can i make mongoose return the objectID for every object ?</p>