We would like to export our graph into a CSV file. I have a working apoc export in the Browser but would like this capability in Bloom.
Embedding this working Cypher into bloom does not work. How can I fix this?
//Create a simple set of nodes in Browser:
merge (tierOne:TierOne{Name:"T1"})-[c1:contains]->(tierTwo:TierTwo{Name:"T2"})-[c2:contains]->(tierThree:TierThree{Name:"T3"})
// in Bloom add this Cypher/Apoc command to export my graph into a csv file
with "match path = (tierOne:TierOne)-[c1:contains]->(tierTwo:TierTwo)-[c2:contains]->(tierThree:TierThree)
*return *
tierOne.Name as tierOneName, tierTwo.Name as tierTwoName, tierThree.Name as tierThreeName" as csvExportQuery
*call apoc.export.csv.query(csvExportQuery, "result.csv", {}) *
yield file, source, format, nodes, relationships, properties, time, rows, batchSize, batches, done, data
return file, source, format, nodes, relationships, properties, time, rows, batchSize, batches, done, data
thanks guys.. its something simple but.. i am new to Bloom