Support Topics Documentation Slack YouTube Blog

Get data by relation

In my Bussines table, I have relations between businesses and other tables (BussinessCategory and BussinesSubCategory). how I can get category and subcategory when calling Businesses List

Hi, @saeed_noshadi!

Here is my example:

DataQueryBuilder queryBuilder = DataQueryBuilder.create();
queryBuilder.addRelated( “BussinessCategory” );
queryBuilder.addRelated( “BussinesSubCategory” );
List bussinesses = Backendless.Data.of( “Bussines” ).find( queryBuilder );

Feel free to ask any questions


Have a nice day,