How to properly manage a cascade delete #9089
Unanswered
FacuRiccardi
asked this question in
Questions
Replies: 1 comment
-
Hey @FacuRiccardi I feel your frustration I went through the same problem... you have to write a custom relationship wrapper to handle extending the prisma schema
Should definitely just be a config option though it's wild that it's not |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Im currently working with Keystonejs 6 and I want to know how to properly manage a cascade delete.
I have a this list called Lot:
And I this other called kmz
This relationship creates a table on my db called Lot_kmzFiles, and it doesn't actually creates any field with information about the reference so I'm not able to delete the Kmzs related to the Lot on the Lot delete.
I tryed with various differents ways of doing this, but I don't get it to work, so I don't know if I'm missing something from the documentation of it isn't a feature of keystone yet.
I would love any help with this problem! Thanks.
Beta Was this translation helpful? Give feedback.
All reactions