Skip to content
Browse files

Merge pull request #814 from peterneubauer/shelltest

making the shell example work correctly, added semicolon tip
  • Loading branch information...
2 parents ba0bbb1 + 1774a05 commit ce4d2b8bb6944bfed352bbc7428a028539efaf01 @jexp jexp committed Aug 24, 2012
Showing with 10 additions and 7 deletions.
  1. +4 −1 shell/src/docs/dev/shell.txt
  2. +6 −6 shell/src/test/java/org/neo4j/shell/ShellTest.java
View
5 shell/src/docs/dev/shell.txt
@@ -233,7 +233,10 @@ See <<shell-options-enum>> for the traversal order option. Even relationship typ
=== Query with Cypher ===
You can use Cypher to query the graph. For that, use the +start+ command.
-* +start n = (0) return n+ will give you a listing of the node with ID 0
+[TIP]
+Cypher queries need to be terminated by a semicolon `;`.
+
+* +start n = (0) return n;+ will give you a listing of the node with ID 0
=== Indexing ===
View
12 shell/src/test/java/org/neo4j/shell/ShellTest.java
@@ -190,16 +190,16 @@ public void testMatrix() throws Exception
doc.add( "set name \"The Architect\"", "", "set the name" );
doc.add( "cd", "", "go to the first node in the history stack" );
- doc.add( "","","Now, let's ask some questions" );
+ doc.add( "","","" );
doc.add( "start morpheus = node:node_auto_index(name='Morpheus') " +
"match morpheus-[:KNOWS]-zionist " +
- "return zionist.name",
- "",
+ "return zionist.name;",
+ "Trinity",
"Morpheus' friends, looking up Morpheus by name in the Neo4j autoindex" );
- doc.add( "cypher 1.5 start morpheus = node:node_auto_index(name='Morpheus') " +
+ doc.add( "cypher 1.6 start morpheus = node:node_auto_index(name='Morpheus') " +
"match morpheus-[:KNOWS]-zionist " +
- "return zionist.name",
- "",
+ "return zionist.name;",
+ "Cypher",
"Morpheus' friends, looking up Morpheus by name in the Neo4j autoindex" );
doc.run();
server.shutdown();

0 comments on commit ce4d2b8

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