1

I have 3 table/class such as User, Item, User_item.

In User_item, I point to Item class. To get detail of my pointer, I use this.

PFQuery *query = [PFQuery queryWithClassName:@"User_item"];
[query includeKey:@"Item"];

Problem is that inside my Item class, I also point back to User. May I know how to get detail from User by using query to User_item class?

1 Answer 1

2

The include key can be a key path:

[query includeKey:@"Item.User"];

and will include the detail from each level.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.