Mongoose saving with objectId
That's not proper way of inserting reference typed values.
You have to do it like,
router.post('/api/comment', function(req, res, next){
var comment = new Comment({
postId: db.Types.ObjectId(req.body.objectId),
contents: 'contents'
}
It will work as you desired.