Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

making the shell example work correctly, added semicolon tip

  • Loading branch information...
commit 1774a055b87b574ea2c547f879f566a820ff3645 1 parent 1a5830b
@peterneubauer peterneubauer authored
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();
Please sign in to comment.
Something went wrong with that request. Please try again.