I need to save an object into Parse with pointer to User table.
At first I try to get PFUser object by objectId
var query = PFUser.query()
var user = query.getUserObjectWithId(a.id)
or try that
var user = PFUser.getUserObjectWithId(a.id)
and got the mistake "does not have a member getUserObjectWithId"
Parse API:
+ (PFUser *)getUserObjectWithId:(NSString *)objectId
And one more question. Is there a simple way to put the pointer to User table without an additional query?
I've try to save earlier PFUser object from query
var query = PFUser.query()
query.whereKey("email", equalTo:friendMail)
var friend = query.findObjects()
but the result of query is not PFUser.