Transaction boundary issues when mixing Prisma and raw SQL
6/10 MediumCombining Prisma Client calls with `$queryRaw` within `$transaction` blocks causes unexpected transaction boundary behavior, requiring developers to choose one approach per transaction.
Collection History
Query: “What are the most common pain points with Prisma for developers in 2025?”4/4/2026
Mixing Prisma `$transaction` with raw SQL — Transaction boundaries behave unexpectedly when combining Prisma client calls with `$queryRaw`. Stick to one approach per transaction.
Created: 4/4/2026Updated: 4/4/2026