Celestine
02/25/2022, 7:06 PMconst result = await this.prisma.$queryRaw<
Prisma.categorySelect[]
>`CALL catalog_get_categories_for_product(${productId})`;
return result;
The returned result looks like this:
[
{
"f0": 1,
"f1": 1,
"f2": "French"
}
]
What I am expecting:
[
{
"category_id": 1,
"department_id": 1,
"name": "French"
}
]
Does anyone have an idea why the column names are not being returned correctly?Celestine
03/06/2022, 5:26 PMjanpio