I am trying to write a Parse query for my iOS social app that will show all users that are following the active user. Here is what I have so far:
PFQuery *followingUser = [PFQuery queryWithClassName:@"Activity"];
[followingUser whereKey:@"Activity" equalTo:@"follow"];
[followingUser whereKey:@"fromUser" equalTo:self.user];
[followingUser includeKey:@"User"];
[followingUser setCachePolicy:kPFCachePolicyCacheThenNetwork];
Currently this correctly gives me all the records of the active user following any other users, But this doesn't give me the PFUser details (user profile pic, display name, etc) for the corresponding records. Any ideas on how i can easily draw out the PFUser details in the one query?
Thanks in advance
Here is some sample code of a query that I used to get all the users being followed, all posts from the users being followed, and all posts from the current user. I hope this helps!