P
Prisma5mo 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
ChrissyOP5mo 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
Want results from more Discord servers?
Add your server