You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SaveDepth failed to save entity when you try to reverse relation with Link/Unlink function.
E.g. you have (node1)-[HAS_NODE]->(node2) and you wand to reverse relation to have (node1)<-[HAS_NODE]-(node2):
After changing relation with Link/Unlink functions, SaveDepth function works without errors and relation is changed.
Current Behavior
SaveDepth gives failed to save in auto transaction, expected relationship deletions not equal to actual. Expected=2|Actual=1
Steps to Reproduce
Code example in the end.
Use structure
type Node struct {
gogm.BaseUUIDNode
Name string `gogm:"name=name"`
Children []*Node `gogm:"direction=outgoing;relationship=HAS_NODE"`
Parents []*Node `gogm:"direction=incoming;relationship=HAS_NODE"`
}
Bug Report:
SaveDepth
failed to save entity when you try toreverse
relation withLink/Unlink
function.E.g. you have
(node1)-[HAS_NODE]->(node2)
and you wand to reverse relation to have(node1)<-[HAS_NODE]-(node2)
:Expected Behavior
After changing relation with
Link/Unlink
functions,SaveDepth
function works without errors and relation is changed.Current Behavior
SaveDepth
givesfailed to save in auto transaction, expected relationship deletions not equal to actual. Expected=2|Actual=1
Steps to Reproduce
Code example in the end.
gogmcli
node2
as child fornode1
node2
with depth 1node2
node2
and add children:node2
with depth 1.Possible Solution
Environment
Would you be interested in tackling this issue
No
Additional info
The text was updated successfully, but these errors were encountered: