-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