It looks like the documentation is a bit outdated, so I’m having trouble figuring out how to load an object with all its relationships. Per the documentation, it should be something like:
var personDB:IDataStore = Backendless.Persistence( Person );
var relations = [ Backendless.Persistence.LOAD_ALL_RELATIONS ];
Person person = personDB.findById( personID, relations, responder );
I’ve translated line 1 to: Backendless.PersistenceService.of(Person);
On line 2, I can’t find the LOAD_ALL_RELATIONS on the PersistenceService, but I’m assuming I can substitute an asterisk for that constant.
Line 3 looks like java/android syntax with the overloading of the “relations” parameter, and I’m not seeing an AS API method to specify the relations param.