PrismaP
Prisma9mo ago
6 replies
vpjm

Dmmf in frontend

Hi,

I need to determine whether a database field is an array. To achieve this, I’ve created a function that uses Prisma's DMMF.

Additionally, I want to associate multilingual labels with each field in the database. For this, I’ve defined a typed object that maps each field to its translated labels.

These two pieces of information — whether a field is an array and its translations — need to be accessible from the frontend.

What would be the best way to structure and expose this data to the client ?

Thanks a lot for your help!
Was this page helpful?