Select in nested findMany query ?

Hi, I need some help with part of my code
I have many-to-many relation between two tables items and subcategories and third relation table named itemsToSubCategoriesTable

I 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 ?
screen.png
Was this page helpful?