{
results = (
{
address = "";
contents = (
{
"__type" = Pointer;
className = dairyContent;
createdAt = "2017-06-15T03:46:50.746Z";
objectId = 5942032aa0bb9f006b824e46;
text = {
"__type" = Pointer;
className = Text;
objectId = 5942032aa0bb9f006b824e45;
};
type = text;
updatedAt = "2017-06-15T03:46:50.757Z";
user = {
"__type" = Pointer;
className = "_User";
objectId = 5940e349128fe1006a0d85dc;
};
});
weather = sunny;
}
);
}
如上所示,如何将text字段对应的指针也查询出来?,content是一个数组字段
现在的查询语句如下:
let query = AVQuery(className: "Dairy")
query.whereKey("user", equalTo: user)
query.limit = 10
query.order(byDescending: "createdAt")
query.includeKey("contents")
query.findObjectsInBackground { (objects, error) in
}
结果最上面
-
创建时间
17年6月15日
-
最后回复
17年6月16日
-
1
回复
-
1.1K
浏览
-
2
用户