Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[Modern] NODE_DELETE does not remove node from connections #2155
The documentation says
setRelayModernMutationConfigs.js seems to verify this as the intended behavior.
Wouldn't it make sense for
@DavidHe1127 nope, I never resolved it beyond moving from configs to updaters, which I think is the intended way in Relay Modern. As @bharathmuraleedharan points out, you can write an updater and target the connection you're looking to remove from.
I haven't look at this in a while, so maybe something changed: but if you're trying to remove a node from all connections after you delete a node, short of knowing a priori which connections it belonged to and removing that node from those connections, it appears there is no easy way to do that.
referenced this issue
Mar 6, 2018
Confirmed that I see the same issue - An edge remains with the following contents:
This happens using the following config: