I solved my problem ... in a way. I was not able to compare PFRelation, so I created a helper class, Parse, which saves the user who adds the other user as "from" and the user they add as "in", then I can compare them.
let currentUser = PFUser.currentUser()?.username let currentFriends = PFQuery(className: "Friends") currentFriends.whereKey("from", equalTo: currentUser!) // Start the query object let query = PFQuery(className: "_User") query.whereKey("username", doesNotMatchKey: "to", inQuery: currentFriends)
I hope this helps someone in the future.
Trip phillips
source share