From 6159e85b1244dce53bdc8404d456dac3145c610b Mon Sep 17 00:00:00 2001 From: Joel Bergstrand Date: Fri, 21 Feb 2025 11:42:35 +0100 Subject: [PATCH 1/2] Added note on dynamic labels in INSERT --- modules/ROOT/pages/clauses/create.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ROOT/pages/clauses/create.adoc b/modules/ROOT/pages/clauses/create.adoc index 5b81fd75b..2c8533b39 100644 --- a/modules/ROOT/pages/clauses/create.adoc +++ b/modules/ROOT/pages/clauses/create.adoc @@ -263,7 +263,7 @@ RETURN greta.name AS name, labels(greta) AS labels, type(rel) AS relType, collec == `INSERT` as a synonym of `CREATE` `INSERT` can be used as a synonym to `CREATE` for creating nodes and relationships, and was introduced as part of Cypher's xref:appendix/gql-conformance/index.adoc[]. -However, `INSERT` requires that multiple labels are separated by an ampersand `&` and not by colon `:`. +However, `INSERT` requires that multiple labels are separated by an ampersand `&` and not by colon `:`. `INSERT` does not support using dynamic node labels and relationship types. .Query [source, cypher, indent=0] From 7ba4afb3210cd3142b6830473f8dc5d9432f78b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jens=20Pryce-=C3=85klundh?= <112686610+JPryce-Aklundh@users.noreply.github.com> Date: Fri, 21 Feb 2025 13:51:04 +0100 Subject: [PATCH 2/2] Update modules/ROOT/pages/clauses/create.adoc --- modules/ROOT/pages/clauses/create.adoc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/ROOT/pages/clauses/create.adoc b/modules/ROOT/pages/clauses/create.adoc index 2c8533b39..e5e1f7193 100644 --- a/modules/ROOT/pages/clauses/create.adoc +++ b/modules/ROOT/pages/clauses/create.adoc @@ -263,7 +263,8 @@ RETURN greta.name AS name, labels(greta) AS labels, type(rel) AS relType, collec == `INSERT` as a synonym of `CREATE` `INSERT` can be used as a synonym to `CREATE` for creating nodes and relationships, and was introduced as part of Cypher's xref:appendix/gql-conformance/index.adoc[]. -However, `INSERT` requires that multiple labels are separated by an ampersand `&` and not by colon `:`. `INSERT` does not support using dynamic node labels and relationship types. +However, `INSERT` requires that multiple labels are separated by an ampersand `&` and not by colon `:`. +Additionally, `INSERT` does not support using dynamic node labels and relationship types. .Query [source, cypher, indent=0]