Skip to content

Commit d57299c

Browse files
Apply suggestions from code review
Co-authored-by: Richard Sill <[email protected]>
1 parent 27608f7 commit d57299c

File tree

1 file changed

+21
-15
lines changed

1 file changed

+21
-15
lines changed

modules/ROOT/pages/migration/index.adoc

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ npm update @neo4j/graphql
2020

2121
Here is a list of all the breaking changes from version 6.0.0 to 7.0.0.
2222

23-
=== `@unique`
23+
=== Removed the `@unique` directive
2424

25-
`@unique` directive is no longer supported:
25+
The `@unique` directive is no longer supported:
2626

2727

2828
[source, graphql, indent=0]
@@ -33,41 +33,47 @@ type Movie {
3333
----
3434

3535

36-
=== Non-list relationships
37-
38-
Deprecate single element relationships:
36+
=== Deprecated single element relationships
3937

38+
Single element relationships have been deprecated in favor of list relationships:
4039

40+
[source, graphql, indent=0]
41+
----
42+
[cols="1,1"]
43+
|===
44+
|Before | Now
45+
a|
4146
[source, graphql, indent=0]
4247
----
4348
type Movie {
4449
director: Person @relationship(type: "DIRECTED", direction: "IN")
4550
}
4651
----
47-
48-
In favor of list relationships:
49-
50-
52+
a|
5153
[source, graphql, indent=0]
5254
----
5355
type Movie {
5456
director: [Person!]! @relationship(type: "DIRECTED", direction: "IN")
5557
}
5658
----
59+
|===
60+
61+
5762
58-
1-1 relationships cannot be reliably enforced, leading to a data inconsistent with the schema. For this reason, these have been removed in favor of the more accurate list relationships.
63+
Single element relationships cannot be reliably enforced, leading to a data inconsistent with the schema.
5964
6065
6166
=== `overwrite`
6267
6368
64-
Argument `overwrite` in `connect` operations has been deprecated. This is part of the overarching changes to how `connect` operation work in 7.x
69+
The `overwrite` argument in `connect` operations has been deprecated.
70+
This is part of the overarching changes to how `connect` operations work in 7.x.
6571
66-
For updating a relationship, use the `update` operation
72+
Instead, use the `update` operation to update a relationship.
6773
6874
69-
=== `connectOrCreate`
75+
=== Removed the `connectOrCreate` operation
7076
71-
The `connectOrCreate` operation has been removed due to limitations on its featureset when compared to other operations.
77+
The `connectOrCreate` operation has been removed due to limitations on its feature set when compared to other operations.
7278
73-
`connectOrCreate` relies on `MERGE` operations in Cypher, which did not allowed for `onCreate` operations to follow nested relationships.
79+
`connectOrCreate` relies on `MERGE` operations in Cypher, which did not allow for `onCreate` operations to follow nested relationships.

0 commit comments

Comments
 (0)