Unlinking #79
-
I have been using the Unlink function generated by the gogm cli. When I execute SaveDepth, I cannot remove any relationships. How do I remove relationships using gogm? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, could you provide some details of your schema and a minimal example of you unlinking a relationship? GoGM tracks relationships added and removed to a node using the |
Beta Was this translation helpful? Give feedback.
Hi, could you provide some details of your schema and a minimal example of you unlinking a relationship?
GoGM tracks relationships added and removed to a node using the
BaseNode
(see https://github.com/mindstand/gogm/blob/9cf4692c9f35bd3e93a472326c114135abbd1bbb/model.go#L25) struct that all nodes must embed. This struct contains a set of relationships that the node was LOADED with. Can you verify that your nodes embed theBaseNode
orBaseUUIDNode
structs?