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
Copy file name to clipboardExpand all lines: modules/ROOT/pages/mutations/create.adoc
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -112,7 +112,7 @@ Read about xref:mutations/update.adoc#_connectorcreate_relationships[`update`] f
112
112
113
113
== `connectOrCreate` relationships
114
114
115
-
If a related node has the `@unique` directive defined, you can use `connectOrCreate` nested in a `CREATE` mutation to perform an operation similar to a link:https://neo4j.com/docs/cypher-manual/current/clauses/merge/[Cypher `MERGE`] operation on the related node.
115
+
If a related node has the `@unique` directive defined, you can use `connectOrCreate` nested in a `create` mutation to perform an operation similar to a link:https://neo4j.com/docs/cypher-manual/current/clauses/merge/[Cypher `MERGE`] operation on the related node.
116
116
This will create a new relationship and the related node if it doesn't exist yet.
117
117
118
118
Consider the following type definitions:
@@ -157,9 +157,9 @@ This ensures that a movie with ID 1234 exists and is connected to `"Tom Hanks"`.
157
157
If the movie does not exist, it will be created with the title `"Forrest Gump"`.
158
158
If a movie with the given ID already exists, it will also be connected to `"Tom Hanks"`, and keep whatever title it has.
159
159
160
-
== `CREATE` optimization
160
+
== `create` optimization
161
161
162
-
With `CREATE` operations, there is no limit on how many nodes can be created at once.
162
+
With `create` operations, there is no limit on how many nodes can be created at once.
163
163
However, there is a known performance issue for large batch sizes.
164
164
165
165
The Neo4j GraphQL Library contains an optimization feature designed to mitigate it, but it does not work in the following scenarios:
0 commit comments