wrote merge subgraph test

This commit is contained in:
jay
2026-11-27 08:27:11 -05:00
parent ffe11f9c36
commit d2eadd5cd7
3 changed files with 268 additions and 9 deletions
+5 -2
View File
@@ -200,11 +200,14 @@ func NewRelationship(
// NewRelationshipFromNeo4j creates a new relationship from a Neo4j Relationship.
func NewRelationshipFromNeo4j(r neo4j.Relationship) *Relationship {
start, end := NewNode(nil, nil), NewNode(nil, nil)
start.ElementID = r.StartElementId
end.ElementID = r.EndElementId
return &Relationship{
ElementID: r.ElementId,
Type: r.Type,
Start: &Node{ElementID: r.StartElementId},
End: &Node{ElementID: r.EndElementId},
Start: start,
End: end,
Props: r.Props,
}
}