Skip to content

Commit 0d75a0e

Browse files
Document removal of allowing nodes and rels on RHS of SET properties … (#1069)
…clause. --------- Co-authored-by: Jens Pryce-Åklundh <[email protected]>
1 parent 8b08e29 commit 0d75a0e

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

modules/ROOT/pages/deprecations-additions-removals-compatibility.adoc

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,26 @@ The following Unicode Characters are removed in identifiers:
6464
'\u202D', '\u202E', '\u2060', '\u2061', '\u2062', '\u2063', '\u2064', '\u2066',
6565
'\u2067', '\u2068', '\u2069', '\u206A', '\u206B', '\u206C', '\u206D', '\u206E',
6666
'\u206F', '\u2E2F', '\uFEFF', '\uFFF9', '\uFFFA', '\uFFFB'
67+
68+
a|
69+
label:functionality[]
70+
label:removed[]
71+
[source, cypher, role="noheader"]
72+
----
73+
MATCH (n)-[r:REL]->(m) SET n = r;
74+
MATCH (n)-[r:REL]->(m) SET n += r;
75+
MATCH (n)-[r:REL]->(m) SET r = n;
76+
MATCH (n)-[r:REL]->(m) SET r += n;
77+
----
78+
a|
79+
Using a `NODE` or `RELATIONSHIP` instead of a `MAP` on the RHS of a xref:clauses/set.adoc[`SET`] properties clause is no longer supported.
80+
Instead, use the xref:functions/scalar.adoc#functions-properties[`properties()`] function to get the map of properties from nodes or relationships, which can then be used in the `SET` clause.
81+
82+
[source, cypher, role="noheader"]
83+
----
84+
MATCH (n)-[r:REL]->(m) SET n = properties(r)
85+
----
86+
6787
|===
6888

6989

0 commit comments

Comments
 (0)