Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rationalism/adb5b10d57102528680c829ac699c9c2 to your computer and use it in GitHub Desktop.
Save rationalism/adb5b10d57102528680c829ac699c9c2 to your computer and use it in GitHub Desktop.
Clojure for reproduction of 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)")]))
(->> (range 10) (pmap bug-query) dorun)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment