在Angular2-Meteor中使用$lookup运算符时,我得到了这个错误:
子任务id bAJHF7MZzEidGBZ63中的异常 错误:轮询查询时的异常
{
"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()的接缝
发布于 2017-02-09 16:19:15
我们得出的结论是,安古拉2-流星中的$lookup会破坏数据。我们用了不同的方法。我们将所有需要的数据存储在所有的集合中。
https://stackoverflow.com/questions/41976404
复制相似问题