From 225e22cd2eee919fdc7e70d742b4bb51dda9f320 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jens=20Pryce-=C3=85klundh?= <112686610+JPryce-Aklundh@users.noreply.github.com> Date: Thu, 7 Mar 2024 08:51:39 +0100 Subject: [PATCH 1/2] add results to 4.4 tutorial --- .../pages/introduction/cypher_tutorial.adoc | 36 ++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/modules/ROOT/pages/introduction/cypher_tutorial.adoc b/modules/ROOT/pages/introduction/cypher_tutorial.adoc index 4cc13c3df..926bd0c2d 100644 --- a/modules/ROOT/pages/introduction/cypher_tutorial.adoc +++ b/modules/ROOT/pages/introduction/cypher_tutorial.adoc @@ -664,13 +664,47 @@ The below query searches the graph for outgoing relationships from the `Tom Hank [source, cypher] ---- MATCH (tom:Person {name:'Tom Hanks'})-[r]->(m:Movie) -Return tom, type(r), m.title +RETURN type(r) AS type, m.title AS movie ---- 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). image::introduction_example1.svg[width="500",role="middle"] +.Result +[role="queryresult",options="header,footer",cols="2* Date: Thu, 7 Mar 2024 09:02:21 +0100 Subject: [PATCH 2/2] fix --- modules/ROOT/pages/introduction/cypher_tutorial.adoc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/ROOT/pages/introduction/cypher_tutorial.adoc b/modules/ROOT/pages/introduction/cypher_tutorial.adoc index 926bd0c2d..fbce0078d 100644 --- a/modules/ROOT/pages/introduction/cypher_tutorial.adoc +++ b/modules/ROOT/pages/introduction/cypher_tutorial.adoc @@ -667,9 +667,7 @@ MATCH (tom:Person {name:'Tom Hanks'})-[r]->(m:Movie) RETURN type(r) AS type, m.title AS movie ---- -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). - -image::introduction_example1.svg[width="500",role="middle"] +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). .Result [role="queryresult",options="header,footer",cols="2*