hi, I have many-to-many relationship tables with U...
# prisma-client
r
hi, I have many-to-many relationship tables with User and Company where users can have many companies and vice-versa. How to create new users where client provides multiple company ids? I’m struggling to figure it out. Should I try in prisma.user.createMany? or prisma.usersCompanies.create()?
r
@Rony Fhebrian 👋 One way to do this would be to perform a
prisma.company.update
and
create
a user inside that for each company.