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
Maybe with transaction: https://www.prisma.io/docs/orm/prisma-client/queries/transactions#the-transaction-api
Transactions and batch queries (Reference) | Prisma Documentation
This page explains the transactions API of Prisma Client.
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