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
| Returns the graph reference with the given element id. It is only supported in the `USE` clause, on composite databases.
209
+
| Returns the graph reference with the given element id.
210
+
It is only supported in the xref:clauses/use.adoc[`USE`] clause.
211
+
As of Neo4j 5.26, it is supported on both link:{neo4j-docs-base-uri}/operations-manual/{page-version}/database-administration/[standard and composite databases].
212
+
On earlier versions, it is only supported on composite databases.
Copy file name to clipboardExpand all lines: modules/ROOT/pages/clauses/load-csv.adoc
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -309,7 +309,7 @@ It also mitigates the risk of Cypher injection.
309
309
(For more information about Cypher injection, see link:https://neo4j.com/developer/kb/protecting-against-cypher-injection/[Neo4j Knowledge Base -> Protecting against Cypher injection]).
=== Query a composite database constituent graph dynamically
95
95
96
-
The built-in function `graph.byName()` can be used in the `USE` clause to resolve a constituent graph from a `STRING` value containing the qualified name of a constituent.
96
+
The xref:functions/graph.adoc#functions-graph-byname[`graph.byName()`] function can be used in the `USE` clause to resolve a constituent graph from a `STRING` value containing the qualified name of a constituent.
97
97
98
98
This example uses a composite database named `myComposite` that includes an alias named `myConstituent`:
99
99
@@ -114,12 +114,18 @@ USE graph.byName($graphName)
=== Query a composite database constituent using elementId
119
120
120
-
The `graph.byElementId()` function (introduced in Neo4j 5.13), can be used in the `USE` clause to resolve a constituent graph to which a given element id belongs.
121
-
In the below example, it is assumed that the DBMS contains a composite database constituent, which contains the element id `4:c0a65d96-4993-4b0c-b036-e7ebd9174905:0`.
122
-
If the constituent database is not a standard database in the DBMS an error will be thrown:
121
+
The xref:functions/graph.adoc#functions-graph-by-elementid[`graph.byElementId()`] function can be used in the `USE` clause to resolve a constituent graph to which a given xref:functions/scalar.adoc#functions-elementid[element id] belongs.
122
+
As of Neo4j 5.26, it is supported on both standard and composite databases (on previous versions it is only available on composite databases).
123
+
124
+
[NOTE]
125
+
On a standard database, a `USE` clause with `graph.byElementId()` cannot be combined with other `USE` clauses unless the subsequent `USE` clauses reference the same element id.
126
+
127
+
In the below example, it is assumed that the DBMS contains the database corresponding to the given element id. If you are connected to a composite database it needs to be a element id to a constituent database, which is a standard database in the DBMS.
Copy file name to clipboardExpand all lines: modules/ROOT/pages/deprecations-additions-removals-compatibility.adoc
+34Lines changed: 34 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -160,6 +160,18 @@ For more information on the deprecation of these formats, see link:{neo4j-docs-b
160
160
| Feature
161
161
| Details
162
162
163
+
a|
164
+
label:functionality[]
165
+
label:updated[]
166
+
[source, cypher, role="noheader"]
167
+
----
168
+
USE graph.byElementId("4:c0a65d96-4993-4b0c-b036-e7ebd9174905:0")
169
+
MATCH (n) RETURN n
170
+
----
171
+
172
+
| xref:functions/graph.adoc#functions-graph-by-elementid[`graph.byElementId()`] can now be used on both link:{neo4j-docs-base-uri}/operations-manual/{page-version}/database-administration/[standard and composite databases].
173
+
Previously it could only be used on composite databases.
174
+
163
175
a|
164
176
label:functionality[]
165
177
label:updated[]
@@ -181,6 +193,28 @@ label:updated[]
181
193
GRANT READ {*} ON GRAPH * FOR (n) WHERE n.createdAt > date('2024-10-25') TO regularUsers
182
194
----
183
195
| link:{neo4j-docs-base-uri}/operations-manual/{page-version}/authentication-authorization/property-based-access-control/[Property-based access control] now supports xref:values-and-types/spatial.adoc[spatial] and xref:values-and-types/temporal.adoc[temporal] values.
196
+
197
+
198
+
a|
199
+
label:functionality[]
200
+
label:updated[]
201
+
[source, cypher, role="noheader"]
202
+
----
203
+
RETURN 'val' as one, 'val' as two
204
+
UNION
205
+
RETURN 'val' as two, 'val' as one
206
+
----
207
+
208
+
[source, cypher, role="noheader"]
209
+
----
210
+
RETURN 'val' as one, 'val' as two
211
+
UNION ALL
212
+
RETURN 'val' as two, 'val' as one
213
+
----
214
+
a|
215
+
216
+
Using differently ordered return items in a `UNION [ALL]` clause has been un-deprecated.
| `elementId` | `STRING` | An element id of a node or relationship.
189
195
| *Returns* 3+| `GRAPH`
@@ -192,6 +198,10 @@ For more information, see xref:subqueries/call-subquery.adoc#import-variables[CA
192
198
.Considerations
193
199
|===
194
200
| If the constituent database is not a standard database in the DBMS, an error will be thrown.
201
+
| `graph.byElementId()` is only supported in the xref:clauses/use.adoc[`USE`] clause.
202
+
| As of Neo4j 5.26, `graph.byElementId()` is supported on both link:{neo4j-docs-base-uri}/operations-manual/{page-version}/database-administration/[standard and composite databases].
203
+
On earlier versions, it is only supported on composite databases.
204
+
| On a standard database, a `USE` clause with `graph.byElementId()` cannot be combined with other `USE` clauses unless the subsequent `USE` clauses reference the same element id.
0 commit comments