#Is its possible to convert directly the Decimal to a Number in Prisma function

3 messages · Page 1 of 1 (latest)

umbral sage
#

Is it possible to directly convert a Decimal field from the Prisma ORM to a number within the CRUD operations for a model? I'm asking because I'm using Next.js server components and need to send only serializable objects to my client components.

verbal stump
umbral sage