I would like write a mutation updater
that unlinks a linked record from another record.
For example, suppose I have the following in my store:
client:root {
user: {__ref: "someid"}
}
I am looking for a way to unlink user
and client:root
. user
is a nullable field. I would like subscribers that are interested in the user
field to see it has gone null
.
Right now the only way I am seeing to unlink this field is to delete the node from the store. I've tried setting the link to null using setLinkedRecord
but that throws an error.