I need to query a large number of friends messages for a user in Parse.

I have a Friend\_Relation object with two users, a friend and a current user.

Each user has many Message objects (i am concerned only with the most current). The relation loos like this:
 [message setObject:currentUser forKey:@"userMessage"];

The user object has an attribute for the most current message objectId.

**How do I get all of a user's friends and their messages?**

I was thinking if I could query all of a user's friends that is easy. If I could then create an NSArray of the objectIds that I get from a users friends, I could another single query to get back all of those user's messages. How could I create this type of query on the fly?