I have created a one to one relationship between my user table and a “profile details” table.
On the edit profile page of my app, I want to retrieve this extra information for the current user. How do i do it? I was trying the example here: https://backendless.com/documentation/data/ios/data_relations_retrieve.htm but it didn’t work.
Swift tells me that this line has an error. Has something changed?
//get current user
currentUser = backendless.userService.currentUser
//get current user profile details
let dataQuery = BackendlessDataQuery()
let queryOptions = QueryOptions()
queryOptions.related = ["ProfileDetails"]
dataQuery.queryOptions = queryOptions
var error: Fault?
let bc = backendless.data.of(Order.ofClass()).find(dataQuery)
print(bc)