title: Node + Express Mongoose Sub Collection Document Insert
body: <p>I have a Node + Express project running, I am building a basic blogging system with the following Schema and Models</p>
  
  <pre><code>var Post = mongoose.Schema({
      title: String,
      body: String,
      author: String,
      dateCreated: {type: Date, default: Date.now },
      comments: [{author: String, body: String, date: Date}]
  });
  var Post = db.model('Post', Post);
  </code></pre>
  
  <p>I accept a post request via the following code and update the Title, Body and Author from it</p>
  
  <pre><code>app.post('/addpost', function(req,res){
      console.log(req.body.post);
      var post = new Post(req.body.post);
      post.save(function(err){
          if(!err){
              res.redirect('/');
          }else{
              res.redirect('/');
          }
      })
  })
  </code></pre>
  
  <p>The question I have is, how do I add Comments to the schema using the coda I have already developed?</p>
  
  <p><code>req.body.post</code> outputs </p>
  
  <pre><code>{ title: 'Hello World', body: 'This is a body', author: 'Bioshox' }
  </code></pre>
  
  <p>Which is obviously acceptable for Mongoose, but in order to add comments how would I go about this?</p>
  
  <p>Thanks!!</p>