Skip to content

How to perform type casting in prisma? #17248

Answered by nurul3101
Josrph asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @Josrph 👋

Prisma queries will return data in the JavaScript types that correspond to the Prisma types defined in your schema.prisma. It’s possible to do SQL type casting, like casting from integer to string if you use $queryRaw.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Josrph
Comment options

@nurul3101
Comment options

Answer selected by Josrph
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants