I have User
class and Follow
class. User
is the standard Parse User
class. My Follow
class contains the follower
and followed
columns, both pointers to User
instances.
I am trying to return a list of User
s which are not followed by my user. I know I can get the follows first and then locally call notContainedIn
, but it involves loading the array first locally. I want to execute my query in "one shot" (at least in my code side). This is my current code:
var recommendedPeopleQuery = new Parse.Query(User);
[...]
var user = request.user;
var followingsQuery = new Parse.Query("Follow");
followingsQuery.equalTo("follower", user);
recommendedPeopleQuery.???? //it should exclude
//followingsQuery's "followed" results.
What should the last line be?