Can you please tell me how to update the many-to-m...
# orm-help
р
Can you please tell me how to update the many-to-many relationship correctly? That is, the user has a specific array of roles. Suppose a role has been added or removed to a user during the upgrade. Should this be handled by separate requests? it is impossible to do this directly in the prisma.user.update request?
r
You can perform the adding and removing of a role in the same request.
connect
for adding and
disconnect
for removing.