Select in nested findMany query ?
Hi, I need some help with part of my code
I have
I get the response as expected with nested
but the result is
"items": [
{
"items": {
"id": 8,
"name": "novinky",
"slug": "novinky",
"content": ""
}
}, .... another "items" ]
but i want items: [ {item1} , {item2} ]
is it possible ?
I have
many-to-many relation between two tables items and subcategories and third relation table named itemsToSubCategoriesTableI get the response as expected with nested
with statement but the result is
"items": [
{
"items": {
"id": 8,
"name": "novinky",
"slug": "novinky",
"content": ""
}
}, .... another "items" ]
but i want items: [ {item1} , {item2} ]
is it possible ?
