var query = new AV.Query('Collocations');
if('hot' == request.params.select){
query.descending('praisedCount');
}
if('latest' == request.params.select){
query.descending('updatedAt');
}
query.skip(skip);
query.limit(pagesize);
query.include("myUser");
query.find({
success: function(results) {
var users=[];
for(var i=0; i<results.length; i++){
users[i] = results[i].get("myUser");
}
response.success(results);
},
error: function(error) {
response.error("other exception");
}
});
使用云代码想做一个关联查询,代码片段如上,results[i].get("myUser");可以获得myUser的所有字段,但是
response.success(results);直接返回到前端,结果中只有如下几个字段
"myUser":{"__type":"Pointer","className":"ExternalUser1","objectId":"54dc75f6e4b021f79dce4af3"}
请问怎么才能解决?