P
Prisma6mo ago
Chrissy

Prisma-to-sql

Is it possible to convert smt like model.findFirst({ ... }) to sql so i can combine it with a custom sql query? Or make a .findFirst() with AND Query, where 1 query is RAW SQL?
2 Replies
Chrissy
ChrissyOP6mo ago
not what i want tbh What i could build is a custom function, which first does the where and then again the filter function to then again get use findMany But tbh that's not good, if i could write raw sql code instead

Did you find this page helpful?