wrote merge subgraph test
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user