Question about exporting data using CALL apoc.export.csv.all in Neo4j

I want to export data using the CALL apoc.export.csv.all function in Neo4j.
When using

"""CALL apoc.export.csv.all("export_by_jupter.csv", {});"""

the data is saved in C:\neo4j-community-4.4.20\export_by_jupter.csv.

However, when I try to save the data in csv_file=C:\Users\A\Downloads\output.csv using

f"""CALL apoc.export.csv.all('{csv_file}', {{stream:true}}) yield data;"""

it doesn't work.

Could you please help me understand why?

You can configure apoc to write to a full path with an apoc.conf setting.

1 Like

I tried the method you taught me, and it worked well.
Thank you for your kind and detailed response.

1 Like