Skip to content
This repository was archived by the owner on Sep 2, 2022. It is now read-only.

Delete cascade on deleteMany not supposed to work? #2103

Closed
nickluger opened this issue Mar 17, 2018 · 1 comment
Closed

Delete cascade on deleteMany not supposed to work? #2103

nickluger opened this issue Mar 17, 2018 · 1 comment

Comments

@nickluger
Copy link

https://github.com/graphcool/prisma/pull/2028 introduced relation checks. It seems it always gives us:

Error: The change you are trying to make would violate the required relation

even if

 @relation(name: "PostOfUser", onDelete: CASCADE)

Shouldn't it delete casace even on deleteMany?

@marktani
Copy link
Contributor

marktani commented Mar 17, 2018

That's a known limitation, which is documented here: #1936. Therefore I'm closing this issue.

Please leave an upvote and subscribe for the mentioned feature request 🙌

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants