简体   繁体   中英

Prisma not accept function as transaction? Really this?

在此处输入图像描述

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

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:)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM