如何在 Angular2-Meteor 中使用 $lookup
How to use $lookup in Angular2-Meteor
在 angular2-meteor 中使用 $lookup 运算符时出现此错误:
Exception from sub tasks 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 会破坏数据。我们使用了不同的方法。我们将所有需要的数据存储在所有集合中。
在 angular2-meteor 中使用 $lookup 运算符时出现此错误:
Exception from sub tasks 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 会破坏数据。我们使用了不同的方法。我们将所有需要的数据存储在所有集合中。