我正在尝试使用解析服务器JS SDK上的聚合函数
var pipeline = [
{ group: { objectId: '$league_id'} }
];
var query = new Parse.Query("Fixture");
return query.aggregate(pipeline)
.then(function (results) {
return results;
})
.catch(function (error) {
throw error;
});当我运行此函数时,它为league_id提供了正确的组数,但它包含空数据
{
"result": [
{
"objectId": null
},
{
"objectId": null
}
]
}我在这里错过了什么?我可以做些什么来获取结果中的其他字段
发布于 2020-01-05 21:37:27
看起来这个https://github.com/parse-community/parse-server/issues/5989#issuecomment-526007093已经有问题了
它已在3.9.0中修复
https://stackoverflow.com/questions/59498568
复制相似问题