Delete to use the include attribute to cascade deletes #2092
Labels
kind/feature
A request for a new feature.
team/client
Issue for team Client.
topic: cascade
topic: referential actions
Milestone
Problem
When cleaning up data, with delete, you may get a relationship error such as:
Solution
It would be good if the following worked (typescript likes it as is)
Alternatives
You can work around the problem now, by deleting the relations with a separate preceding command, but that could get dicey on a busy instance as different connections maybe used and ideally both deletes should be done in the same transaction.
Additional context
The text was updated successfully, but these errors were encountered: