Can you guys try to convert this part of code into backendless
i am trying to convert but some part seems not convertible
- (PFQuery *)queryForTable {
// Query for the friends the current user is following
PFQuery *followingActivitiesQuery = [PFQuery queryWithClassName:kPAPActivityClassKey];
[followingActivitiesQuery whereKey:kPAPActivityTypeKey equalTo:kPAPActivityTypeFollow];
[followingActivitiesQuery whereKey:kPAPActivityFromUserKey equalTo:[PFUser currentUser]];
// Using the activities from the query above, we find all of the photos taken by
// the friends the current user is following
PFQuery *photosFromFollowedUsersQuery = [PFQuery queryWithClassName:self.className];
[photosFromFollowedUsersQuery whereKey:kPAPPhotoUserKey matchesKey:kPAPActivityToUserKey inQuery:followingActivitiesQuery];
[photosFromFollowedUsersQuery whereKeyExists:kPAPPhotoPictureKey];
// We create a second query for the current user's photos
PFQuery *photosFromCurrentUserQuery = [PFQuery queryWithClassName:self.className];
[photosFromCurrentUserQuery whereKey:kPAPPhotoUserKey equalTo:[PFUser currentUser]];
[photosFromCurrentUserQuery whereKeyExists:kPAPPhotoPictureKey];
// We create a final compound query that will find all of the photos that were
// taken by the user's friends or by the user
PFQuery *query = [PFQuery orQueryWithSubqueries:[NSArray arrayWithObjects:photosFromFollowedUsersQuery, photosFromCurrentUserQuery, nil]];
[query includeKey:kPAPPhotoUserKey];
[query orderByDescending:@"createdAt"];
. . .
return query;
}