many to many api response looks wierd

when for example prisma needs to fetch data that is many to many related for example user & role and then only select roles you will get a api response likee this
[
{
"role": {
"id": 1,
"name": "user",
"priority": 0,
"permission": []
}
}
]
[
{
"role": {
"id": 1,
"name": "user",
"priority": 0,
"permission": []
}
}
]
instead of this
[
{
"id": 1,
"name": "user",
"priority": 0,
"permission": []
}
]
[
{
"id": 1,
"name": "user",
"priority": 0,
"permission": []
}
]
anybody know what it was called? also wasn't there issue posted on github for this?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server