Vincent
Vincent

Reputation: 1645

Retrieve username object from pointer - Parse, swift

I am working on an app with a Parse backend that will allow people to send friends invites and to respond to them. I currently have a Parse class called Friendship with a fromUser, toUser and status objet. I have my app setup so you're now able to send someone an invite. But, I don't know how to display these requests is the app. This is because when I query the fromUser object of a request, I get the object id etc. instead. How can I display these users usernames?

Upvotes: 1

Views: 2615

Answers (1)

Lucas Huang
Lucas Huang

Reputation: 4016

I think the documentation is extremely helpful: https://parse.com/docs/ios_guide#queries-relational/iOS

And no doubt you are dealing with Relations: https://parse.com/docs/relations_guide

So, if I understand properly, you probably go check includeKey. That will help you query all the data instead of just returning objectId, createdDate and updateDate.

Upvotes: 3

Related Questions