Leo Li
10/21/2021, 4:29 PMAustin
10/21/2021, 7:26 PMJson
fields in your Prisma schema, but if you wanted to cast a field after retrieving it through the Prisma client, you could do it using the TypeScript as
keyword.
const typedField = queryResult.jsonField as SomeType
Austin
10/26/2021, 3:31 PM