Skip to content

Commit af7ddf7

Browse files
authored
1 parent 555a057 commit af7ddf7

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

doc/modules/ROOT/pages/management-ops/graph-creation/graph-project-cypher-projection.adoc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,8 +400,7 @@ To add both a relationship with its natural _and_ with its reverse orientation,
400400
[source, cypher, role=noplay]
401401
----
402402
MATCH (source:Person)-[:KNOWS]->(target:Person)
403-
CALL {
404-
WITH source, target
403+
CALL (source, target) {
405404
RETURN id(source) AS sourceId, id(target) AS targetId, 'KNOWS' AS rType
406405
UNION
407406
WITH source, target

doc/modules/ROOT/pages/management-ops/graph-update/collapse-path.adoc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,7 @@ The following query will project such a graph:
108108
[source, cypher, role=noplay graph-project-query]
109109
----
110110
MATCH (p:Person)-[:PLAYS]->(i:Instrument)
111-
CALL {
112-
WITH p, i
111+
CALL (p, i) {
113112
RETURN id(p) AS sourceId, id(i) AS targetId, 'PLAYS' AS rType
114113
UNION
115114
WITH p, i

doc/modules/ROOT/pages/production-deployment/composite.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ First we need to project a named graph on the analytical database shard.
6666

6767
[source, cypher, role=noplay]
6868
----
69-
CALL {
69+
CALL () {
7070
USE COMPOSITE_DB_NAME.ANALYTICS_DB
7171
CALL gds.graph.project('graph', 'Person', 'KNOWS')
7272
YIELD graphName
@@ -79,13 +79,13 @@ Using the composite database, we can now calculate the PageRank score for each P
7979

8080
[source, cypher, role=noplay]
8181
----
82-
CALL {
82+
CALL () {
8383
USE COMPOSITE_DB_NAME.ANALYTICS_DB
8484
CALL gds.pagerank.stream('graph', {})
8585
YIELD nodeId, score AS pageRank
8686
RETURN gds.util.asNode(nodeId).id AS personId, pageRank
8787
}
88-
CALL {
88+
CALL () {
8989
USE COMPOSITE_DB_NAME.OPERATIONAL_DB
9090
WITH personId
9191
MATCH (p {id: personId})
@@ -133,7 +133,7 @@ We now need to query the shards in order to drive the import process on the prox
133133

134134
[source, cypher, role=noplay]
135135
----
136-
CALL {
136+
CALL () {
137137
USE COMPOSITE_DB_NAME.COMPOSITE_SHARD_0_NAME
138138
MATCH (p:Person) OPTIONAL MATCH (p)-[:KNOWS]->(n:Person)
139139
RETURN p, n

0 commit comments

Comments
 (0)