Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #814 from peterneubauer/shelltest

making the shell example work correctly, added semicolon tip
  • Loading branch information...
commit ce4d2b8bb6944bfed352bbc7428a028539efaf01 2 parents ba0bbb1 + 1774a05
Michael Hunger jexp authored
5 shell/src/docs/dev/shell.txt
@@ -233,7 +233,10 @@ See <<shell-options-enum>> for the traversal order option. Even relationship typ
233 233 === Query with Cypher ===
234 234 You can use Cypher to query the graph. For that, use the +start+ command.
235 235
236   -* +start n = (0) return n+ will give you a listing of the node with ID 0
  236 +[TIP]
  237 +Cypher queries need to be terminated by a semicolon `;`.
  238 +
  239 +* +start n = (0) return n;+ will give you a listing of the node with ID 0
237 240
238 241
239 242 === Indexing ===
12 shell/src/test/java/org/neo4j/shell/ShellTest.java
@@ -190,16 +190,16 @@ public void testMatrix() throws Exception
190 190 doc.add( "set name \"The Architect\"", "", "set the name" );
191 191 doc.add( "cd", "", "go to the first node in the history stack" );
192 192
193   - doc.add( "","","Now, let's ask some questions" );
  193 + doc.add( "","","" );
194 194 doc.add( "start morpheus = node:node_auto_index(name='Morpheus') " +
195 195 "match morpheus-[:KNOWS]-zionist " +
196   - "return zionist.name",
197   - "",
  196 + "return zionist.name;",
  197 + "Trinity",
198 198 "Morpheus' friends, looking up Morpheus by name in the Neo4j autoindex" );
199   - doc.add( "cypher 1.5 start morpheus = node:node_auto_index(name='Morpheus') " +
  199 + doc.add( "cypher 1.6 start morpheus = node:node_auto_index(name='Morpheus') " +
200 200 "match morpheus-[:KNOWS]-zionist " +
201   - "return zionist.name",
202   - "",
  201 + "return zionist.name;",
  202 + "Cypher",
203 203 "Morpheus' friends, looking up Morpheus by name in the Neo4j autoindex" );
204 204 doc.run();
205 205 server.shutdown();

0 comments on commit ce4d2b8

Please sign in to comment.
Something went wrong with that request. Please try again.