Skip to content

Commit 7d07511

Browse files
add properties
1 parent cde7b3e commit 7d07511

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

modules/ROOT/pages/clauses/where.adoc

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,12 +185,19 @@ The `name`, `age` and `email` values for `Peter` are returned because `Andy` has
185185

186186
To filter on a property using a dynamically computed name, use square bracket syntax:
187187

188+
.Parameters
189+
[source, parameters]
190+
----
191+
{
192+
"propname": "age"
193+
}
194+
----
195+
188196
.Query
189197
[source, cypher]
190198
----
191-
WITH 'AGE' AS propname
192199
MATCH (n:Person)
193-
WHERE n[toLower(propname)] < 30
200+
WHERE n[$propname] < 30
194201
RETURN n.name, n.age
195202
----
196203

modules/ROOT/pages/syntax/parameters.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Parameters can be used for:
1717

1818
* Literals and expressions.
1919
* Node and relationship ids.
20+
* Properties, when referenced dynamically (for more information, see xref:clauses/where.adoc#filter-on-dynamic-property[filter-on-dynamic-property]).
2021
* 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]
2122

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

0 commit comments

Comments
 (0)