Hello
I am running the query below
DataQueryBuilder queryBuilder = DataQueryBuilder.create();
String query = new String(“”);
query+=" my custom query " ;
queryBuilder.setWhereClause(query);
queryBuilder.addProperty(“Count(likedBy) as likes”);
queryBuilder.addProperty(“Count(disLikedBy) as dislikes”);
queryBuilder.setSortBy(“created ;DESC”);
queryBuilder.setRelated(“postedBy”,“location”,“title”);
queryBuilder.setPageSize(100).setOffset(paging_offset);
List<Map> results = Backendless.Data.of( “Posts” ).find( queryBuilder );
I am only getting few fields (the related and properties above). I thought I would be getting all Posts table column. Am I missing something?
Thank you