0

I am using the following query to save my data as csv file on my Desktpo:

CALL apoc.export.csv.query("MATCH (a) RETURN a", 
 'C:/Users/Raf/Desktop/results.csv', {});

This query returns me a csv where the data are in quotes and the delimeter is a comma ','.

I would like to not have the data in the quotes and have the '|' pipe as a delimiter, how could I do?

raf
  • 137
  • 2
  • 12
  • I think that's not supported yet (custom delims) but different types of quoting is supported. Please raise a GH issue. – Michael Hunger Jan 29 '19 at 16:55
  • Yes custom delims is supported, @Raj found the solution, the quotes are an open point yet. – raf Jan 29 '19 at 16:58

1 Answers1

2

You need to pass delimiter in a parameter with key "d".

Ex:

CALL apoc.export.csv.query("MATCH (a) RETURN a",
'C:/Users/Raf/Desktop/results.csv', {d: '|'});
Rajendra Kadam
  • 4,004
  • 1
  • 10
  • 24