When I tried to delete a goal this error is returned:
[
{
"error": {
"json": {
"message": "\nInvalid `prisma.goal.delete()` invocation:\n\n\nThe change you are trying to make would violate the required relation 'GoalToTodo' between the `Todo` and `Goal` models.",
"code": -32603,
"data": {
"code": "INTERNAL_SERVER_ERROR",
"httpStatus": 500,
"path": "todo.deleteGoal"
}
}
}
}
]
When I tried to delete a goal this error is returned: