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:Jump to solution
The way to do this in drizzle winded up being just putting everything in a transaction.
Docs: https://orm.drizzle.team/docs/transactions...
Transactions – DrizzleORM
Drizzle ORM | %s
3 Replies
Solution
The way to do this in drizzle winded up being just putting everything in a transaction.
Docs: https://orm.drizzle.team/docs/transactions
Transactions – DrizzleORM
Drizzle ORM | %s
followed this thread to see
thanks for following up
No problem!