Is it possible to have a hook function (e.g. `oper...
# prisma-whats-new
g
Is it possible to have a hook function (e.g.
operationBefore
) fire in response to a change in a relationship? For example, I have
Department
and
Employee
types, and a relationship between the two to define managers. I want a hook to fire in response to the
addToDepartmentManagers
mutation. I've tried hooking into both
Department.update
and
Employee.update
operations but neither get triggered.