I am trying to find how to get an object and all of its hierarchy of relations in the least number of queries. There are 4 levels of relations. The size of the relation objects are no more than 20 items, some objects may only have fewer than 10 and others more, but the Backendless limit for number of relations is a maximum of 10. So I have to iterate at each level through each child object and get all of its relations, which ends up being a lot of calls.
Is there a more optimal query that I could make to solve this problem?