ParseUser的关系查询无效

时间:2015-11-02 05:56:51

标签: android parse-platform relational-database

这是我的内心疑问:

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获取列表大小

1 个答案:

答案 0 :(得分:0)

尝试ParseQuery<ParseObject> query = ParseQuery.getQuery("UserProfile");