Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rationalism/14ee4f0aa341c22e25f416a1fa783646 to your computer and use it in GitHub Desktop.
Save rationalism/14ee4f0aa341c22e25f416a1fa783646 to your computer and use it in GitHub Desktop.
Clojure to reproduce Neo4j problem
(defn bug-query [id]
(cypher-combined-tx
[(str "MATCH (root)-[:name]->(b:person_name) WHERE ID(root) = " id " DETACH DELETE b")
(str "MATCH (a) WHERE ID(a) = " id " MERGE (b:person_name {val: 'Bob Smith'}) CREATE (a)-[r:name]->(b)")]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment