Hi, I have object with a lot of relation ~20. What...
# prisma-whats-new
a
Hi, I have object with a lot of relation ~20. What is the right way to update all data in relation objects? Is there was cascade delete I would just delete main object with all relation ones and recreate it all. Now it looks like a lot of wiring of ids and many queries to do ((
❓ 2
👍 1
n
@andrius currently nested updates need to be handled with as you probably already do, by using ids and the separate mutations. We are already researching both easier nested updates (https://github.com/graphcool/feature-requests/issues/127) and cascading deletes(https://github.com/graphcool/feature-requests/issues/47).
🤔 1
i
That results in quite a lot of boilerplate code, please keep us in the loop if / when you come up with something better. Thanks 😉
n
Will do 🙂 Thanks for your feedback folks! 🙏