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

No description
6 Replies
dumbboy
dumbboy2y ago
+1
Craig
Craig2y 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 ⚡2y ago
Relational queries only support querying for now.
cosbgn
cosbgn2y ago
is this featured planned? e.g. create/edit/delete with relational queries
rphlmr ⚡
rphlmr ⚡2y ago
I think yes
Angelelz
Angelelz2y 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

Did you find this page helpful?