Skip to content
Discussion options

You must be logged in to vote

Hey there 👋 thanks for raising this!

Does the nested write inside the transaction callback try to make another transaction nested inside of the interactive transaction?

No.

Or does the prisma client know to properly use the callback's transaction?

Yes, Prisma Client will ensure that only one transactions is being opened, even if you include nested writes in an interactive transaction.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@aniravi24
Comment options

Answer selected by aniravi24
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants