Currently if try an async thread loop firing off Cypher requests Neo4J barfs saying 'you are trying to run requests while another is running'.
My work around for now is using the asynch library....
async.eachSeries(regulation.sources, function iterator(source, callback){
mergeSource(source, transaction, callback);
}, function(err){
if(err){
transaction.rollback("Problem adding source");
throw err;
}
transaction.commit(function () { });
});
It would be nice if there was a way to handle this in node-neo4j