阅读背景:

解析查询 - 不能处理多个whereKey:doesNotMatchKey:inQuery

来源:互联网 

I was trying this

我正在尝试这个

PFQuery *allDealsQuery = [Deal query];
PFRelation *favoritedDealsRelation = [user objectForKey:@"favoritedDeals"];
PFQuery *favoritedDealsQuery = [favoritedDealsRelation query];

PFRelation *redeemedDealsRelation = [user objectForKey:@"redeemedDeals"];
PFQuery *redeemedDealsQuery = [redeemedDealsRelation query];

[allDealsQuery whereKey:@"objectId" doesNotMatchKey:@"objectId" inQuery:favoritedDealsQuery];
//Parse does not support more than 2 where queries???
[allDealsQuery whereKey:@"objectId" doesNotMatchKey:@"objectId" inQuery:redeemedDealsQuery];

    [allDealsQuery findObjectsInBackgroundWithBlock:^(NSArray *objects, NSError *error) {
        if (!error) {
            onSuccess(objects);
        }
        else {
            onError(error);
        }
    }];
PFQuery *allDeals



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: