Too many nested objs on many-to-many relations
I get an object like
Would it be possible to remove the keys
query https://pastebin.com/XWF0C1aY
[
{
"id": "43119ea8-a293-4c89-aaba-4d699f89e34f",
"model": "3",
"brand": "Firulo",
"manufacturer": "Carlitos",
"homologations": [
{
"homologation": {
"id": "8fff866b-055a-406e-9c61-9e842c5a0a2e",
"name": "una homologación cualquiera",
"countries": [
{
"country": {
"id": "ar",
"name": "Argentina"
}
},
{
"country": {
"id": "us",
"name": "United States"
}
}
]
}
}
]
},
{
"id": "4a386002-274b-4e15-8ed9-7ac3aaabe178",
"model": "Coso®",
"brand": "El blanco",
"manufacturer": "Juan",
"homologations": [
{
"homologation": {
"id": "8fff866b-055a-406e-9c61-9e842c5a0a2e",
"name": "una homologación cualquiera",
"countries": [
{
"country": {
"id": "ar",
"name": "Argentina"
}
},
{
"country": {
"id": "us",
"name": "United States"
}
}
]
}
}
]
}
][
{
"id": "43119ea8-a293-4c89-aaba-4d699f89e34f",
"model": "3",
"brand": "Firulo",
"manufacturer": "Carlitos",
"homologations": [
{
"homologation": {
"id": "8fff866b-055a-406e-9c61-9e842c5a0a2e",
"name": "una homologación cualquiera",
"countries": [
{
"country": {
"id": "ar",
"name": "Argentina"
}
},
{
"country": {
"id": "us",
"name": "United States"
}
}
]
}
}
]
},
{
"id": "4a386002-274b-4e15-8ed9-7ac3aaabe178",
"model": "Coso®",
"brand": "El blanco",
"manufacturer": "Juan",
"homologations": [
{
"homologation": {
"id": "8fff866b-055a-406e-9c61-9e842c5a0a2e",
"name": "una homologación cualquiera",
"countries": [
{
"country": {
"id": "ar",
"name": "Argentina"
}
},
{
"country": {
"id": "us",
"name": "United States"
}
}
]
}
}
]
}
]Would it be possible to remove the keys
homologationshomologations, countriescountries, etc?query https://pastebin.com/XWF0C1aY
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.