Closed nmondal closed 6 months ago
See the following cypher queries:
[1]
MATCH (a:Entity), (b:Entity) WHERE a.urn = '%s' AND b.urn = '%s' CREATE (a)-[r:%s { startTime: datetime(), endTime: null } ]->(b) RETURN a,b
[2]
MATCH (a {urn:'%s'})-[r:%s]-(b {urn:'%s'}) SET r.endTime = datetime()
It takes 3 params. Entity1, Entity2, and a relation name. But now the ordering gets changed, that is shame.
This solves it. https://github.com/nmondal/cowj/commit/670c91e64a8a936341eaf03d2cd72fd1222bf25b
See the following cypher queries:
[1]
[2]
It takes 3 params. Entity1, Entity2, and a relation name. But now the ordering gets changed, that is shame.