I have executions and each execution has several images, example,
table execution
id | name
1 execution1
table image
id | executionId | image
1 1 'path'
2 1 'path2'
I want a query that get all the executions, with each execution having all their images like,
{ executions: [
{ id: 1,
name: execution1,
images: 'path+path2'
},
{...}
]
}