val queryBuilder = DataQueryBuilder.create()
queryBuilder.setRelated( "cityOfResidence" )
queryBuilder.whereClause = "name = 'Tommy'"
val result = Backendless.Data.of("Person").find(queryBuilder)
//Print out returned data
for (match in result){
for (entry in match){
println("${entry.key} => ${entry.value}")
}
}
I run this Kotlin code, after initializing Backendless. The print out is as expected: the fields of the person object, where one is the “cityOfResidence” which points to a city object (a map object). “cityOfResidence” is a relation with table named “City”.
But I don’t get credited with an accepted solution…