Skip to content

Commit 301e923

Browse files
update to graph.byelementid
1 parent e5de1b6 commit 301e923

File tree

3 files changed

+27
-3
lines changed

3 files changed

+27
-3
lines changed

modules/ROOT/pages/appendix/gql-conformance/additional-cypher.adoc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,10 @@ REMOVE n:$($label)
206206
| Description
207207

208208
| xref:functions/graph.adoc#functions-graph-by-elementid[`graph.byElementId()`]
209-
| 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 `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.
210213

211214
| xref:functions/graph.adoc#functions-graph-byname[`graph.byName()`]
212215
| Returns the graph reference of the given name. It is only supported in the `USE` clause, on composite databases.

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,18 @@ For more information on the deprecation of these formats, see link:{neo4j-docs-b
160160
| Feature
161161
| Details
162162

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+
163175
a|
164176
label:functionality[]
165177
label:updated[]

modules/ROOT/pages/functions/graph.adoc

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,12 +144,18 @@ For more information, see xref:subqueries/call-subquery.adoc#import-variables[CA
144144
.Details
145145
|===
146146
| *Syntax* 3+| `graph.byName(name)`
147-
| *Description* 3+| Returns the graph reference of the given name. It is only supported in the `USE` clause, on composite databases.
147+
| *Description* 3+| Returns the graph reference of the given name.
148148
.2+| *Arguments* | *Name* | *Type* | *Description*
149149
| `name` | `STRING` | The name of the graph to be resolved.
150150
| *Returns* 3+| `GRAPH`
151151
|===
152152

153+
154+
.Considerations
155+
|===
156+
| `graph.byName()` is only supported in the `USE` clause, on composite databases.
157+
|===
158+
153159
.+graph.byName()+
154160
======
155161
@@ -183,7 +189,8 @@ For more information, see xref:subqueries/call-subquery.adoc#import-variables[CA
183189
.Details
184190
|===
185191
| *Syntax* 3+| `graph.byElementId(elementId)`
186-
| *Description* 3+| Returns the graph reference with the given element id. It is only supported in the `USE` clause, on composite databases.
192+
| *Description* 3+| Returns the graph reference with the given element id.
193+
It is only supported in the `USE` clause.
187194
.2+| *Arguments* | *Name* | *Type* | *Description*
188195
| `elementId` | `STRING` | An element id of a node or relationship.
189196
| *Returns* 3+| `GRAPH`
@@ -192,6 +199,8 @@ For more information, see xref:subqueries/call-subquery.adoc#import-variables[CA
192199
.Considerations
193200
|===
194201
| If the constituent database is not a standard database in the DBMS, an error will be thrown.
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.
195204
|===
196205

197206
.+graph.byElementId()+

0 commit comments

Comments
 (0)