How to use Prisma transaction capabilitiles #3494
Unanswered
chrisj-back2work
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What do you want and why?
I'd like to be able to use the Prisma transaction features, including the interactive transactions (= transactions in a function block) described here https://www.prisma.io/docs/guides/performance-and-optimization/prisma-client-transactions-guide
I attempted to follow their example, using the Blitz
db
object (import db from "db") in lieu of their
prismaobject (
const prisma = new PrismaClient()`). That didn't work.I assumed the
db
object was equivalent to theprisma
object, only augmented. Howevertsc
complains that:And when I suppress that and try anyway, at runtime I get:
Possible implementation(s)
db
currently?db
object be made a true extension ofprisma
?Additional context
Beta Was this translation helpful? Give feedback.
All reactions