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

Support cascading delete with deleteMany #1936

Closed
huv1k opened this issue Feb 19, 2018 · 10 comments
Closed

Support cascading delete with deleteMany #1936

huv1k opened this issue Feb 19, 2018 · 10 comments

Comments

@huv1k
Copy link
Contributor

huv1k commented Feb 19, 2018

Current behavior
Currently cascade delete don't work with deleteManyTYPE only with deleteTYPE

Reproduction
Just create relation with onDelete: CASCADE and run mutation deleteManyTYPE

Expected behavior?
Cascade delete work with both deleteManyTYPE and deleteTYPE

@Fi1osof
Copy link

Fi1osof commented May 1, 2018

Still waiting for...

@steve-a-jones
Copy link

@marktani - Is there an ETA on this feature?

@SilencerWeb
Copy link

@marktani any updates? :)

@marktani marktani changed the title Cascade delete don't work with deleteMany Support cascading delete with deleteMany Aug 6, 2018
@mxstbr
Copy link
Contributor

mxstbr commented Nov 10, 2018

I stumbled upon this issue by running into the "The change you are trying to make would violate the required relation" error, would love to see support for this!

@maxprilutskiy
Copy link

Any progress on this?

@Steveeeie
Copy link

Is there any progress on this?

In the mean time does anyone know of a sensible work around? This is a huge blocker for me 😞

@impowski
Copy link

Waiting for this one, would be useful in our production.

@LawJolla
Copy link

LawJolla commented Feb 22, 2019

We really need help on features like these (and basic text search).

@domekol
Copy link

domekol commented Mar 14, 2019

#3796

ddowl referenced this issue in ddowl/cookbk Mar 18, 2019
Started implementing and testing several mutators. Realized that I need
to relax the schema definitions of certain functions (e.g. deleting a
non-existent user can't return that user). Discovered that Prisma's
Mongo connector doesn't support cascading deletes:

prisma/prisma#1936

I can work around this by making sure that I delete everything in the
right order, or work on setting up a Postgres DB that behaves
appropriately.
@do4gr
Copy link
Member

do4gr commented Apr 3, 2019

For the SQL connectors cascading delete support for deleteMany and nestedDeleteMany will go into beta today.

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

No branches or pull requests