Neo4j wrapper for Clojure


Julian Morrison has started to develop a wrapper around Neo4j for Clojure, a Lisp dialect running on the JVM. Here’s how the code using the wrapper can look:

(use 'neo4j)

(with-neo "test"
(tx
(let [c (new-node) b (new-node)]
(relate (top-node) :customers c)
(relate c :customer b)
(.setProperty b "name" "Bob")
(success))))

The neo4j-clojure wrapper library was announced in this thread.


Want to learn more about graph databases? Click below to get your free copy of O’Reilly’s Graph Databases ebook and discover how to use graph technologies for your application today.

Download My Ebook