No problems when I loading this data by query, but when I try to save there is problem with ~is_parent_of closely with ~. Is there a possibility to save data with edges in same directions?
Thank you for replay. I have connection from A to B, when I loaded data it is connected correctly. When I try to save this data, it connection as B to A (if sign ~ would be removed, without ~ it would give an error). Different direction of Nodes. The main problem that queries with recursion etc would not work correctly
ChildChild has edge to Child
Child has edge to Parent
This is how it saving in code
using (var transaction = client.NewTransaction()) {
var result = await transaction.Mutate(setJson: database, commitNow: true);
if (result.IsSuccess) {
return true;
} else {
throw new Exception(result.Reasons[0].Message);
}
}
It is c#.
Problem with tilda, if I saving edges without tilda it is working. But edge directions goes backward.
Like from Parent to Child instead of from Child to Parent
from Child to ChildChild instead of from ChildChild to Child.
Well, are you trying to mutate this JSON object as it is? And you expect that the reverse direction to be obtained? Well, that’s not how it works if it is what I see.