Skip to content

Commit b310528

Browse files
add results to 4.4 tutorial (#916)
Co-authored-by: Neil Dewhurst <[email protected]>
1 parent a4e0bfd commit b310528

File tree

1 file changed

+35
-3
lines changed

1 file changed

+35
-3
lines changed

modules/ROOT/pages/introduction/cypher_tutorial.adoc

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -664,12 +664,44 @@ The below query searches the graph for outgoing relationships from the `Tom Hank
664664
[source, cypher]
665665
----
666666
MATCH (tom:Person {name:'Tom Hanks'})-[r]->(m:Movie)
667-
Return tom, type(r), m.title
667+
RETURN type(r) AS type, m.title AS movie
668668
----
669669

670-
The graph returned shows that he has 13 outgoing relationships connected to 12 different `Movie` nodes (12 have the `ACTED_IN` type and one has the `DIRECTED` type).
670+
The result shows that he has 13 outgoing relationships connected to 12 different `Movie` nodes (12 have the `ACTED_IN` type and one has the `DIRECTED` type).
671671

672-
image::introduction_example1.svg[width="500",role="middle"]
672+
.Result
673+
[role="queryresult",options="header,footer",cols="2*<m"]
674+
|===
675+
| type | movie
676+
677+
| "ACTED_IN" | "Apollo 13"
678+
679+
| "ACTED_IN" | "You've Got Mail"
680+
681+
| "ACTED_IN" | "A League of Their Own"
682+
683+
| "ACTED_IN" | "That Thing You Do"
684+
685+
| "ACTED_IN" | "The Da Vinci Code"
686+
687+
| "ACTED_IN" | "Cloud Atlas"
688+
689+
| "ACTED_IN" | "Joe versus the Volcano"
690+
691+
| "ACTED_IN" | "Cast Away"
692+
693+
| "ACTED_IN" | "The Green Mile"
694+
695+
| "ACTED_IN" | "Sleepless in Seattle"
696+
697+
| "ACTED_IN" | "The Polar Express"
698+
699+
| "ACTED_IN" | "Charlie Wilson's War"
700+
701+
| "DIRECTED" | "That Thing You Do"
702+
703+
2+d|Rows: 13
704+
|===
673705

674706
== Finding paths
675707

0 commit comments

Comments
 (0)