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
Was this page helpful?