Skip to content

Commit

Permalink
One more example of bleeding edge mutating Cypher features
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelklishin committed May 4, 2012
1 parent f740ead commit 2db0e1d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/clojurewerkz/neocons/rest/test_mutating_cypher.clj
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,13 @@
(is (missing? john))
(is (exists? beth))
(is (exists? gael))))


;; this needs Neo4J 1.8 snapshot past 1.8-M01
(deftest ^{:cypher true :edge-features true} test-creating-a-bunch-of-nodes-via-mutating-cypher
(let [urls ["http://clojurewerkz.org/"
"http://clojurewerkz.org/articles/about.html"
"http://clojurewerkz.org/articles/community.html"]
response (cy/tquery "CREATE n = {xs} RETURN n", {:xs (map #(hash-map :url %) urls)})
returned-urls (map #(-> (get % "n") :data :url) response)]
(is (= urls returned-urls))))

0 comments on commit 2db0e1d

Please sign in to comment.