Inserting with 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?
Md Jahidul Islam milon
Md Jahidul Islam milon320d ago
use transaction check drizzle doc about transaction
Liam
Liam320d ago
Ok, so would I just do the inserts sharing the same foreign keys?
Md Jahidul Islam milon
Md Jahidul Islam milon319d ago
yes insert in all related table inside a transection. so that if one failed it can rollback automatically