Issues with raw queries (was working) - Postgres
Hi everyone, I've a very weird issue within my setup, it was working but since the switch from npm to Yarn (but I think is not related) I'm facing this issue with a very simple script:
I'm getting this error:
ORM works fine, wherever I try to use a RAW query, even simplest one, doesn't work, any clue?
3 Replies
I had issues with raw queries a while back, ended up switching to this instead
https://www.prisma.io/docs/orm/prisma-client/using-raw-sql/typedsql
I don't know if it'll solve your problem, but it did mine
Writing Type-safe SQL with TypedSQL and Prisma Client | Prisma Docu...
Learn how to use TypedSQL to write fully type-safe SQL queries that are compatible with any SQL console and Prisma Client.
I know it'd be annoying to have a folder, and query, just for a select 1 statement... but it may be worth a shot
Hi @Dario
Can you please share the schema file so i can try reproducing it?