Custom Api Response for get method

rest

#1

i want to get the nested array count(like_by_recipe_id) in the response below where getting this response by hitting this below URL :

http://localhost:8080/api/v2/mysql/_table/recipe?related=like_by_recipe_id&filter=id=1&limit=5&include_count=true

Here the table used is recipe table and primary key of this table is referred as a foreign_key in the like table, while listing all the recipes in the homepage, just want to show the likes_count for the respective recipes too in_order to show that i just want the count of “like_by_recipe_id” array. Is there any way to achieve this using dreamfactory API doc’s or anyother way please guide me in this to solve.
{
“resource”: [
{
“id”: 1,
“title”: “Chicken gravy”,
“thumbnailurl”: “https://img.youtube.com/vi/ygf1wHXXE/0.jpg”,
“videourl”: “https://www.youtube.com/watch?v=ygf1wXXE&list=PLZm7plTpBVTkzFSxhnHqCmBMHVFkk”,
“created_by”: “First author”,
“created_at”: “2018-04-13 14:51:36”,
“source_id”: 1,
“category_id”: 1,
“description”: “Description for First post”,
“is_active”: true,
“directions”: “Directions for first post”,
“ingredients”: “Ingredients for first post”,
“like_by_recipe_id”: [
{
“id”: 1,
“deviceid”: “AndroidId123”,
“recipe_id”: 1,
“status”: true,
“date”: “2018-04-13 15:03:26”
},
{
“id”: 2,
“deviceid”: “AndroidId124”,
“recipe_id”: 1,
“status”: true,
“date”: “2018-04-13 14:55:39”
},
{
“id”: 11,
“deviceid”: “f66e73c660f576b9”,
“recipe_id”: 1,
“status”: true,
“date”: “2018-04-13 14:55:39”
}
]
}
],
“meta”: {
“count”: 1
}
}

Thanks in advance