Drizzle Insert w/ Relation

Hi, What is the way of inserting a new record with a relationship in Drizzle. I understand that Prisma abstracts this away as if you are inserting everything as once but under the hood it breaks it up into multiple queries. Is there anything like this in drizzle?
Solution:
The way to do this in drizzle winded up being just putting everything in a transaction. Docs: https://orm.drizzle.team/docs/transactions...
Jump to solution
3 Replies
Solution
Liam
Liam2y ago
The way to do this in drizzle winded up being just putting everything in a transaction. Docs: https://orm.drizzle.team/docs/transactions
whatplan
whatplan2y ago
followed this thread to see thanks for following up
Liam
LiamOP2y ago
No problem!
Want results from more Discord servers?
Add your server