java - Parse.com whereDoesNotMatchKeyInQuery doesn't work -
i have relatively simple app shows quotes user. when user have seen quote, added "seenquote" relationship user table doesn't see again. when want retrieve new quotes user haven't seen still returns seenquotes.
parseuser user = parseuser.getcurrentuser(); final parsequery<quote> newquotes = new parsequery<quote>(quote.class); final parserelation<parseobject> seenquotes = user.getrelation("seenquotes"); newquotes.wheredoesnotmatchkeyinquery("objectid", "objectid", seenquotes.getquery()); newquotes.findinbackground(new findcallback<quote>() { @override public void done(list<quote> quotes, parseexception e) { // still contains quotes have been seen } });
what doing wrong?
Comments
Post a Comment