does prisma have transaction commit callback or ro...
# orm-help
b
does prisma have transaction commit callback or rollback callback?
n
Hey Barry 👋 an interactive transactions automatically commits once the transaction function has been fully executed, if an error occurs all operations in the transaction function are automatically rolled back as described here: https://www.prisma.io/docs/concepts/components/prisma-client/transactions#interactive-transactions-in-preview If you have a suggestion for the interactive transaction feature, it would be more than welcome in this issue 🙂 https://github.com/prisma/prisma/issues/8664
b
I have seen the doc. I need callback named "afterCommit" to do some logic. but now it does not support. I hope prisma will support it in the future.
n
I need callback named “afterCommit” to do some logic.
I see, it would be really great if you could leave a comment about this in the issue so that our Product and Engineering teams can address this requirement 🙏
b
Okay, I will leave the message on github. Thanks a lot.