Prisma not accept function as transaction? Really this?

0

Issue

enter image description here

In the documentation there is an example using function, like I’m doing at the screenshot, but what the heck, I already lost 1 hour in this, please someone help me

Solution

You have to enable this feature in your prisma schema as follow:

generator client {
  provider        = "prisma-client-js"
  previewFeatures = ["interactiveTransactions"]
}

In the documentation mention it 🙂

Answered By – luisbar

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave A Reply

Your email address will not be published.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More