-
is it possible to cast a column from one type to another using prisma? for example: cast an id column of type integer to a string then perform a contains query on the new string column. |
Beta Was this translation helpful? Give feedback.
Answered by
nurul3101
Jan 11, 2023
Replies: 1 comment 2 replies
-
Hello @Josrph 👋 Prisma queries will return data in the JavaScript types that correspond to the Prisma types defined in your |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
Josrph
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.