Failing to retrieve relations.. [IOS - SWIFT]

Hey, I’ve created a one-to-many relations column in the default Users table named friends… When using the application and adding a friend from it, I can successfully retrieve the friend/s but when trying to retrieve and access the friend/s after closing the app or adding the friends using backendless data viewer… It fails giving “NSARRAY ELEMENT FAILED TO MATCH THE SWIFT ARRAY ELEMENT TYPE” the code where the retrieval occurs is


users = currentUser.getProperty("friends") as! [BackendlessUser]
print(users) // Error occurs here

Thank you in advance :slight_smile:

Hi, Moussa.
Please, don’t create the duplicated questions.
http://support.backendless.com/t/cant-retrieve-users-relations-ios-swift

I wish to remove this duplicate but failed to find how