how do i retrieve all the guildmembers in your guild using parse?
Here is my code:
PFUser *currentuser = [PFUser currentUser];
PFQuery *query = [PFQuery queryWithClassName:@"User"];
[query whereKey:@"connectedGuild" equalTo:currentuser[@"connectedGuild"]];
[query findObjectsInBackgroundWithBlock:^(NSArray *comments, NSError *error) {
NSLog(@"There are %d guildmembers. Error:%@", comments.count, error);
}];
My log:
There are 0 guild members. Error:(null)
connectedGuild is a pointer to a guild class where i store all the guilds.