Join Slack
Powered by
to perform a delete operation on a record that has...
# prisma-whats-new
q
quadsurf
04/18/2017, 2:04 PM
to perform a delete operation on a record that has a relationship with another node, is the proper pattern to first disconnect the node, then delete? or does the delete operation automatically handle the node disconnect to prevent orphaning?
n
nilan
04/18/2017, 2:55 PM
@quadsurf
disconnecting a node or deleting it won't delete the other node. To prevent orphaning, you need to delete the other node first. We are already looking into two better approaches for this pattern, cascading deletes and nested deletes:
https://github.com/graphcool/feature-requests/issues/47
,
https://github.com/graphcool/feature-requests/issues/42
👍 1
q
quadsurf
04/22/2017, 11:27 PM
cascading and nested deletions will be a very nice feature, can’t wait!
❤️ 1
Open in Slack
Previous
Next