Skip to content

Unlinking #79

Answered by nikitawootten
VuongCode asked this question in Q&A
Nov 17, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

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 the BaseNode or BaseUUIDNode structs?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nikitawootten
Comment options

Answer selected by nikitawootten
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants