is there any way to create related records with the main record together like this in prisma

No description
6 Replies
dumbboy
dumbboy15mo ago
+1
Craig
Craig15mo ago
+1. I don't think this is available currently. However, you can run the create steps inside a transaction -https://orm.drizzle.team/docs/transactions.
rphlmr ⚡
rphlmr ⚡15mo ago
Relational queries only support querying for now.
cosbgn
cosbgn15mo ago
is this featured planned? e.g. create/edit/delete with relational queries
rphlmr ⚡
rphlmr ⚡15mo ago
I think yes
Angelelz
Angelelz15mo ago
I don't think there is a native way to do this in SQL. This would need to be in a transaction if drizzle wants to support it
Want results from more Discord servers?
Add your server