This repository was archived by the owner on Jul 28, 2025. It is now read-only.
Replies: 1 comment
-
There's a limitation in the current implementation of the transaction API which means you can't get the ID of a previous result, you have to set the ID (and foreign ID) in advance. In order to support this I would need to implement interactive transactions |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have example schema:
And I would like to create Post with one comment in single query/transaction. How can I do it?
In documentation, there is a section about create relation - https://goprisma.org/docs/walkthrough/create#create-a-record-with-a-relation but its not helpful.
Same for relation - https://goprisma.org/docs/walkthrough/transactions#setting-relations-with-foreign-keys I would like to use id from first transaction, how?
Beta Was this translation helpful? Give feedback.
All reactions