LearnBoost/mongoose — Issue #719: wrong with return embed document json string.
Author: LeToNode
Created: 2012-02-07 05:12:07+00:00
State: open

var Comment = new Schema({
body : String
, date : Date
});

var Post = new Schema({
title : String
, comments : [Comment]
});

------------------------

if I define the schema like this:
var Post = new Schema({
title : String
, comments : String
});

I just want call post.comments can return json array string back.but the method just return '[object Object]'.