这是我的内心疑问:
ParseQuery<ParseUser> innerQuery = ParseUser.getQuery();
innerQuery.whereMatches("username", "(" + searchText + ")", "i");
这是我的OuterQuery:
ParseQuery<ParseObject> query = new ParseQuery<>("UserProfile");
query.include("profileId.userId");
query.whereEqualTo("userId", ParseUser.getCurrentUser());
query.whereEqualTo("relation", "Agent");
///query.whereMatchesQuery("profileId", innerQuery);
query.whereMatchesQuery("userId", innerQuery);
enter code here
userId 是 UserProfile 类
中_user的指针这是查询的回调
query.whereMatchesQuery("userId", innerQuery);
if (loadMore) {
limit = limit + 15;
query.setLimit(15);
} else
query.setLimit(limit);
query.setSkip(skip);
query.findInBackground(new FindCallback<ParseObject>() {
@Override
public void done(List<ParseObject> list, ParseException e) {
if (e == null) {}
从Parse获取列表大小零
答案 0 :(得分:0)
尝试ParseQuery<ParseObject> query = ParseQuery.getQuery("UserProfile");