Skip to content

Commit 861ac3f

Browse files
FlorentinDnvitucci
andcommitted
Clarify how the properties and labels can differ
And some smaller rewording Co-authored-by: Nicola Vitucci <nicola.vitucci@neo4j.com>
1 parent c464497 commit 861ac3f

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

doc/modules/ROOT/pages/management-ops/projections/graph-project-cypher-aggregation.adoc

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,16 @@ Other types of node properties have to be transformed or encoded into one of the
3030
=== Selection of node properties and labels
3131

3232
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`.
3435

3536

3637
[[graph-project-cypher-aggregation-syntax]]
3738
== Syntax
3839

3940
A Cypher aggregation is used in a query as an aggregation over the relationships that are being projected.
4041
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`).
4243
The optional `configuration` parameter can be used for general configuration of the projection such as `readConcurrency`.
4344

4445
[.graph-project-cypher-aggregation-syntax]
@@ -67,9 +68,9 @@ RETURN gds.alpha.graph.project(
6768
| graphName | no | The name under which the graph is stored in the catalog.
6869
| sourceNode | no | The source node of the relationship. Must not be null.
6970
| 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.
7374
|===
7475

7576
[[graph-project-cypher-aggregation-syntax-nodesConfig]]

0 commit comments

Comments
 (0)