-1
我有这样一个模式:如何使用node.js在嵌套模式中插入?
var SchComments = new Schema({
title : String
, body : String
, date : Date
});
var BlogPost = new Schema({
author : ObjectId
, title : String
, body : String
, date : Date
, comments : [SchComments ]
, meta : {
votes : Number
, favs : Number
}
});
我如何可以插入值,以嵌套模式。我怎么能叫SchComments
在Node.JS
如何将值传递给客户端的mongodb读取。 PLZ建议一些答案,以便我可以在工作中取得进展 – pkp 2013-03-04 10:20:09
我需要使用此嵌入式架构将数据插入到mongoDb中。 plz在node.js编码标准 – pkp 2013-03-05 09:04:16
上建议了一些解决方案阅读关于此主题的[documentation](http://mongoosejs.com/docs/subdocs.html),并返回任何您仍有的具体问题。 – JohnnyHK 2013-03-05 12:46:46