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

No description
6 Replies
dumbboy
dumbboy17mo ago
+1
Craig
Craig17mo 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 ⚡17mo ago
Relational queries only support querying for now.
cosbgn
cosbgn16mo ago
is this featured planned? e.g. create/edit/delete with relational queries
rphlmr ⚡
rphlmr ⚡16mo ago
I think yes
Angelelz
Angelelz16mo 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