hey I'm having trouble deleting a User... getting ...
# orm-help
d
hey I'm having trouble deleting a User... getting
Copy code
The change you are trying to make would violate the required relation 'NotificationToUser' between Notification and User"
here's the relevant part of the datamodel
Copy code
type User {
  notifications: [Notification] @relation(name: "UserNotification" onDelete: CASCADE)
}

type Notification {
    recipient: User @relation(name: "UserNotification" onDelete: SET_NULL)
}
using prisma server 3.4 (I think!?)