You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/modules/ROOT/pages/management-ops/projections/graph-project-cypher-aggregation.adoc
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,15 +30,16 @@ Other types of node properties have to be transformed or encoded into one of the
30
30
=== Selection of node properties and labels
31
31
32
32
If a node occurs multiple times, the node properties and labels of the first occurrence will be used for the projection.
33
-
This is important when a node can be a source node as well as a target node.
33
+
This is important when a node can be a source node as well as a target node and their configuration differs.
34
+
Relevant configuration options are `sourceNodeProperties`, `targetNodeProperties`, `sourceNodeLabels` and `targetNodeLabels`.
34
35
35
36
36
37
[[graph-project-cypher-aggregation-syntax]]
37
38
== Syntax
38
39
39
40
A Cypher aggregation is used in a query as an aggregation over the relationships that are being projected.
40
41
It takes three mandatory arguments: `graphName`, `sourceNode` and `targetNode`.
41
-
In addition, the optional `nodesConfig`, `relationshipConfig` parameters can be used to project properties and label or types.
42
+
In addition, two optional parameters can be used to project node properties and labels (`nodesConfig`) or relationship properties and type (`relationshipConfig`).
42
43
The optional `configuration` parameter can be used for general configuration of the projection such as `readConcurrency`.
43
44
44
45
[.graph-project-cypher-aggregation-syntax]
@@ -67,9 +68,9 @@ RETURN gds.alpha.graph.project(
67
68
| graphName | no | The name under which the graph is stored in the catalog.
68
69
| sourceNode | no | The source node of the relationship. Must not be null.
69
70
| targetNode | yes | The target node of the relationship. The targetNode can be null (for example due to an `OPTIONAL MATCH`), in which case the source node is projected as an unconnected node.
70
-
| <<graph-project-cypher-aggregation-syntax-nodesConfig, nodesConfig>> | yes | Properties and Labels configuration for the source and target nodes.
71
-
| <<graph-project-cypher-aggregation-syntax-relationshipConfig, relationshipConfig>> | yes | Properties and Type configuration for the relationship.
72
-
| <<graph-project-cypher-aggregation-syntax-configuration, configuration>> | yes | Additional parameters to configure the cypher aggregation projection.
71
+
| <<graph-project-cypher-aggregation-syntax-nodesConfig, nodesConfig>> | yes | Properties and labels configuration for the source and target nodes.
72
+
| <<graph-project-cypher-aggregation-syntax-relationshipConfig, relationshipConfig>> | yes | Properties and type configuration for the relationship.
73
+
| <<graph-project-cypher-aggregation-syntax-configuration, configuration>> | yes | Additional parameters to configure the projection.
0 commit comments