Stephaneke commented on issue #1954: URL: https://github.com/apache/age/issues/1954#issuecomment-2212453995
Update: the following query below does work (so you can see the result). It is generating all the steps in one create. But the WITH statement should just work as intended? So the bug remains. ```sql SELECT * FROM cypher('my_graph', $$ MATCH (node1:NodeType1)-[rel:RelType]->(node2:NodeType2) WHERE NOT exists((node1)-[:RelType2]-(:NodeType3)-[:RelType2]-(node2)) AND node1.project = 'PROJECT_ID' AND node2.project = 'PROJECT_ID' CREATE (node1)-[:RelType2 {uri: 'https://example.com/ns#RelType2'}]->(newNode:NodeType3 { name: node1.name + '|' + node2.name, uri: 'https://example.com/ns#NodeType3', project: 'PROJECT_ID', executionType: 'AUTO' })<-[:RelType2 {uri: 'https://example.com/ns#RelType2'}]-(node2) RETURN node1, node2, newNode $$) AS (n1 agtype, n2 agtype, n3 agtype); ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@age.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org