[英]How to use $lookup in Angular2-Meteor
在angular2-meteor中使用$ lookup运算符时出现此错误:
子任务的异常id bAJHF7MZzEidGBZ63
Error: Exception while polling query
{
"collectionName": "tasks",
"selector": {
"$lookup": {
"from": "projects",
"localField": "project._id",
"foreignField": "_id",
"as": "proj"
}
},
"
" options ": {
"transform ": null
}
}:
未知的顶级操作符:$ lookup
当我直接使用robomongo查询时,我得到了结果。
versions:
Mongo 3.2.6
angular2-meteor: 0.7.0
Meteor 1.4.2.3
我用:
Tasks.find()
它接缝我需要没有实现的Tasks.aggregate()
我们得出的结论是,angular2-meteor中的$ lookup会破坏数据。 我们使用不同的方法。 我们在所有馆藏中存储所有需要的数据。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.