Skip to content
This repository has been archived by the owner on Mar 20, 2019. It is now read-only.

export-csv #23

Open
jexp opened this issue Jan 16, 2014 · 3 comments
Open

export-csv #23

jexp opened this issue Jan 16, 2014 · 3 comments

Comments

@jexp
Copy link
Owner

jexp commented Jan 16, 2014

full database or cypher statement

@saurabh-p
Copy link

same issue, how to export full database to csv format?

@kengz
Copy link
Contributor

kengz commented Feb 9, 2016

Is there currently any way to do this? The documentation isn't very clear bout this.

@jexp
Copy link
Owner Author

jexp commented Feb 10, 2016

to export all the nodes:

import-cypher -d"\t" -o out.csv MATCH (n) return id(n) as id, labels(n) as labels, n as props

to export all the nodes and their outgoing relationships and the target node:

import-cypher -d"\t" -o out.csv MATCH (n) OPTIONAL MATCH (n)-[r]->(m) return id(n) as start_id, id(r) as rel_id, type(r) as rel_typ, r as rel_props, id(m) as end_id

@jexp jexp closed this as completed Feb 10, 2016
@jexp jexp reopened this Feb 10, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants