Skip to content

Commit cde7b3e

Browse files
add dynamic referencing
1 parent f0eecf4 commit cde7b3e

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

modules/ROOT/pages/syntax/parameters.adoc

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,15 @@ Additionally, parameters make caching of execution plans much easier for Cypher,
1515

1616
Parameters can be used for:
1717

18-
* literals and expressions
19-
* node and relationship ids
18+
* Literals and expressions.
19+
* Node and relationship ids.
20+
* Node labels and relationship types, when referenced dynamically (for more information, see xref:clauses/match.adoc#dynamic-match[`MATCH` using dynamic node labels and relationship types]). label:new[Introduced in 5.26]
2021

2122
Parameters cannot be used for the following constructs, as these form part of the query structure that is compiled into a query plan:
2223

23-
* property keys; so `MATCH (n) WHERE n.$param = 'something'` is invalid
24-
* relationship types; so `MATCH (n)-[:$param]->(m)` is invalid
25-
* labels; so `MATCH (n:$param)` is invalid
24+
* Property keys; `MATCH (n) WHERE n.$param = 'something'` is invalid.
25+
* Relationship types; `MATCH (n)-[:$param]->(m)` is invalid.
26+
* Node labels; `MATCH (n:$param)` is invalid.
2627

2728
Parameters may consist of letters and numbers, and any combination of these, but cannot start with a number or a currency symbol.
2829

0 commit comments

Comments
 (0)