Skip to content
Browse files

Updated map-node-seq to include with-tx. Since the sequence is lazy, …

…it needs a transaction around each map-node operation - otherwise the outer transaction will complete before the nodes are mapped.
  • Loading branch information...
1 parent 7b40736 commit f1aefcc66da176646326507ffa86ac09073fcd22 Tom Pierce committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/neo4j.clj
View
2 src/neo4j.clj
@@ -139,7 +139,7 @@
"Takes a sequence of nodes and creates a lazy sequence that converts
each node to a map using map-node."
[seq]
- (map map-node seq))
+ (map #(with-tx (map-node %)) seq))
(defn update-mapped-node
"Upates a node in the Neo4j database that has been mapped with

0 comments on commit f1aefcc

Please sign in to comment.
Something went wrong with that request. Please try again.