Hi, I am trying to use apoc.export.csv.all api to export the data from the Neo4j database and then the CSV file has to be fed to neo4j admin import command for importing the data to another Neo4j database.
As neo4j admin import expects, headers for nodes and relations, I wanted to check if there is any option to get the headers from Export API.
I could find two flags as below referred here - here - Section: Table 11. configuration options
param | default | description |
---|---|---|
bulkImport | true | create files for Neo4j Admin import |
separateHeader | false | create two file: one for header and one for data |
However, when I execute the api with these configs, I am
- Not finding separate files created for separateHeader
- Seeing the below error for bulkImport
neo4j@neo4j> CALL apoc.export.csv.all("all.csv",{bulkImport: true}); Failed to invoke procedure
apoc.export.csv.all: Caused by: java.net.MalformedURLException: unknown protocol: all.nodes.
Kindly provide inputs or suggestions to resolve the issue.