Skip to content

@wfreeman /neoexample.sh
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
cypher shell script
Wess-MacBook-Pro:bin wfreeman$ cat test.cypher
create (m {name:"m"});
create (n {name:"n"});
Wess-MacBook-Pro:bin wfreeman$ ./neo4j-shell -c < test.cypher
Welcome to the Neo4j Shell! Enter 'help' for a list of commands
NOTE: Remote Neo4j graph database service 'shell' at port 1337
neo4j-sh (?)$ create (m {name:"m"});
+-------------------+
| No data returned. |
+-------------------+
Nodes created: 1
Properties set: 1
8 ms
neo4j-sh (?)$ create (n {name:"n"});
+-------------------+
| No data returned. |
+-------------------+
Nodes created: 1
Properties set: 1
6 ms
@jexp

And you can even use begin at the beginning and commit at the end so that all are executed in a single tx and will be rolled back on failure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.