is there any way to create related records with the main record together like this in prisma
6 Replies
+1
+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.
Relational queries only support querying for now.
is this featured planned? e.g.
create/edit/delete
with relational queriesI think yes
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