title: Referencing another schema in Mongoose
body: <p>if I have two schemas like: </p>
  
  <pre><code>var userSchema = new Schema({
      twittername: String,
      twitterID: Number,
      displayName: String,
      profilePic: String,
  });
  
  var  User = mongoose.model('User') 
  
  var postSchema = new Schema({
      name: String,
      postedBy: User,  //User Model Type
      dateCreated: Date,
      comments: [{body:"string", by: mongoose.Schema.Types.ObjectId}],
  });
  </code></pre>
  
  <p>I tried to connect them together like the example above but I couldn't figure out how to do it. Eventually, if I can do something like this it would make my life very easy</p>
  
  <pre><code>var profilePic = Post.postedBy.profilePic
  </code></pre>