gunjan-it-engg commented on issue #1340: URL: https://github.com/apache/age/issues/1340#issuecomment-1790170608
> @gunjan-it-engg Why was this issue closed? Was it in error? "Previously, when I executed a Cypher query to create nodes and set their properties while also establishing relationships between them, it resulted in the creation of duplicate nodes. The query looked like this: ``` SELECT * FROM ag_catalog.cypher('building', $$ CREATE (:Building {name: 'building1', id: "B1"})-[:Has_FLOOR]->(:Floor {name: 'Ground', id: "G"}) $$) AS (a ag_catalog.agtype); ``` Upon running this query, it would create two nodes with identical properties and labels. To resolve this issue, I modified my approach. Now, I first create the nodes with their properties, and then I establish relationships between them. This adjustment has successfully eliminated the problem of duplicate nodes." -- 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