Skip to content

Commit

Permalink
Dynamic labels/types (neo4j#1098)
Browse files Browse the repository at this point in the history
Co-authored-by: Stefano Ottolenghi <[email protected]>
  • Loading branch information
2 people authored and gem-neo4j committed Nov 28, 2024
1 parent 64875fa commit bba7464
Showing 1 changed file with 39 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,45 @@ Also introduced the ability to specify CSV columns dynamically when using xref:c
|===


=== New features

[cols="2", options="header"]
|===
| Feature
| Details

a|
label:functionality[]
label:new[]
[source, cypher, role="noheader"]
----
MATCH (n:$($label)),
()-[r:$($type))]->()
----

[source, cypher, role="noheader"]
----
CREATE (n:$($label)),
()-[r:$($type)]->()
----

[source, cypher, role="noheader"]
----
MERGE (n:$($label)),
()-[r:$($type)]->()
----

[source, cypher, role="noheader"]
----
LOAD CSV WITH HEADERS FROM 'file:///artists-with-headers.csv' AS line
CREATE (n:$(line.label) {name: line.Name})
----

| Added the ability to dynamically reference node labels and relationship types in xref:clauses/match.adoc#dynamic-match[`MATCH`], xref:clauses/create.adoc#dynamic-create[`CREATE`], and xref:clauses/merge.adoc#dynamic-merge[`MERGE`] clauses.
Also introduced the ability to specify CSV columns dynamically when using xref:clauses/load-csv.adoc#dynamic-load[`LOAD CSV`].
|===


[[cypher-deprecations-additions-removals-5.25]]
== Neo4j 5.25

Expand Down

0 comments on commit bba7464

Please sign in to comment.