Importing cypher script using browser interface

Trying to import a Cypher script file using the browser interface.

I am getting the following error:

Invalid input 'b': expected <init> (line 1, column 1)
"begin"
^

      

The script file looks something like this:

// Create state node 
begin
CREATE (node {a:"a", b:"b", c:"c"})
commit

      

Is this format correct? I cannot find much information on this topic

+3


source to share


1 answer


The file you are trying to import is for neo4j shell.

You can access it from the command line by running the command ./bin/neo4j-shell

and pasting the content into it after starting a shell session.



You can also access it through a browser, just point your local url to localhost: 7474 / webadmin instead of / browser

Then you can click Powertool Console , which is the neo4j shell built into the web version of the command line, and you can paste the contents of your file into it.

+2


source







All Articles