4

I'm trying to cut and paste multiple commands into the Neo4j browser. When I paste and individual command it works fine. When I paste multiple command sets all terminated by a ; I encounter errors.

The commands are for example as follows:

start n1=node:node_auto_index(id='1000038'),n2=node:node_auto_index(id='M5') create n1-    
[:STUDIES]->n2;
start n1=node:node_auto_index(id='1000039'),n2=node:node_auto_index(id='M7') create n1-   
[:STUDIES]->n2;

I get this error:

Invalid input 's': expected whitespace, comment or end of input (line 2, column 1)
"start n1=node:node_auto_index(id='1000040'),n2=node:node_auto_index(id='M15') create   
n1-[:STUDIES]->n2;"
 ^

Any help would be greatly appreciated.

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
user2176065
  • 43
  • 1
  • 3

2 Answers2

5

At the moment, the Neo4j Browser only supports single statements, which may be multi-line. Execution of multiple statements is planned as a feature enhancement.

Cheers, Andreas

akollegger
  • 1,124
  • 10
  • 13
1

In Neo4j 2.2.3 web interface, press Shift + Enter to generate multiple new lines and then enter your code. Then click on the run button on the right. For me, it worked! :)

Naimish Agarwal
  • 516
  • 5
  • 14