猫鼬没有参考

时间:2016-05-10 14:41:11

标签: node.js mongodb mongoose mongoose-populate

无论如何在模式中没有var ParentSchema = mongoose.Schema({ name: String, childProperty: String }); var ChildSchema = mongoose.Schema({ name: String, property: String }); 字段的情况下填充查询?

我有这样的事情:

Parent

然后我将模型分别导出为ChildchildProperty。另请注意,即使我没有为简单起见添加它,propertyParent.findOne({}) .populate({ path: "childProperty", select: "name", model: "Child", match: {"property": "this.childProperty"}, options: null }) .exec(function(err, foundParent){ (...) console.log(foundParent); (...) }); 字段都是唯一的,而不是ObjectIds。

我正在尝试这个:

console.log(foundParent)

但是当childProperty: null applyset.seed(1) mm <- replicate(10, rnorm(20)) #random matrix with 20 rows and 10 columns mm.sorted <- apply(mm,1,sort,decreasing=T) 时,我得到的一切。

我尝试做的甚至可能吗?任何人都可以分享一些见解吗?

0 个答案:

没有答案
相关问题