Peter
Peter

Reputation: 493

Execute a cql script from neo4j shell

I am using neo4j-community-3.0.4 in linux and I am load to execute cql file in neo4j a.cql

CREATE (this_s:Student { Name:'Sam', Title:'title', })

./bin/neo4j-shell -v -c < /root/a.cql

It gives output

+--------------------------------------------+
| No data returned, and nothing was changed. |
+--------------------------------------------+
648 ms
neo4j-sh (?)$
neo4j-sh (?)$ //----------------------------------------------------------

But when I am trying to access the data using browser portal http://localhost:7474/browser/ I am not able to retrieve any data nor in left pane Database information I dont see the node getting created

Upvotes: 0

Views: 42

Answers (1)

cybersam
cybersam

Reputation: 67044

Try removing the extraneous "," after the Title property value. Cypher does not support dangling commas in a property map.

Upvotes: 0

Related Questions