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