title: Should I Use Schema.Types.ObjectId or Schema.ObjectId When Defining a Mongoose Schema
body: <p>It seems like defining my Schema this way:</p>
  
  <pre><code>var PossessionSchema = new mongoose.Schema({
    thing: {type: mongoose.Schema.Types.ObjectId, ref:"Thing"}
  });
  </code></pre>
  
  <p>or this way:</p>
  
  <pre><code>var PossessionSchema = new mongoose.Schema({
    thing: {type: mongoose.Schema.ObjectId, ref:"Thing"}
  });
  </code></pre>
  
  <p>Both work. I see that the mongoose guide uses Schema.Types.ObjectId </p>
  
  <p><a href="http://mongoosejs.com/docs/schematypes.html">http://mongoosejs.com/docs/schematypes.html</a></p>
  
  <p>But I'm confused that both work. </p>
  
  <p>Which one should be used for the Schema? And what is the difference between the two?</p>