jexp / neo4j-shell-tools

A bunch of import/export tools for the neo4j-shell
289 stars 55 forks source link

Cypher syntax in export-graphml #114

Open marekminakowski opened 7 years ago

marekminakowski commented 7 years ago

I have a good query, which works fine with cypher-shell. However, export-graphml doesnt like it. It claims "Invalid input". See the details:

neo4j-sh (?)$ export-graphml -o /tmp/ex1.graphml -t -r MATCH (o:Osoba{troi:'mi.1'}) return o QueryExecutionException: Invalid input '(': expected (line 1, column 1 (offset: 0)) "(o:Osoba{troi:'mi.1'}) return o" ^ neo4j-sh (?)$ exit minak@ns348110:/usr/share/neo4j$ cypher-shell username: **** password: **** Connected to Neo4j 3.1.2 at bolt://localhost:7687 as user iusr. Type :help for a list of available commands or :exit to exit the shell. Note that Cypher queries must end with a semicolon. neo4j> MATCH (o:Osoba{troi:'mi.1'}) return o; o (:Osoba {szansa: 1, imie: "Marek", nazwisko: "Minakowski", birt: 1972, klasa: 0, deat: 0, troi: "mi.1", famc: 235012}) neo4j>

jexp commented 7 years ago

can you try the suggestion from @alperyilmaz ? in https://github.com/jexp/neo4j-shell-tools/issues/117