weshuiz13
weshuiz13
PPrisma
Created by weshuiz13 on 5/12/2024 in #help-and-questions
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?
2 replies