Skip to content

Commit 98e3e9a

Browse files
Apply suggestions from code review
Co-authored-by: Richard Sill <156673635+rsill-neo4j@users.noreply.github.com>
1 parent 0a6034f commit 98e3e9a

File tree

1 file changed

+30
-25
lines changed

1 file changed

+30
-25
lines changed

modules/ROOT/pages/migration/index.adoc

Lines changed: 30 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,13 @@ Here is a list of all the breaking changes from version 6.0.0 to 7.0.0.
2323

2424
=== Removed the `@unique` directive
2525

26-
The `@unique` directive is no longer supported.
26+
The `@unique` directive is no longer supported.
27+
It cannot always be reliably enforced, potentially leading to data inconsistencies that don't match the schema.
2728

2829
=== Removed implicit filtering fields
2930

30-
Implicit equality filtering fields have been removed. You must now use the dedicate input versions:
31+
Implicit equality filtering fields have been removed.
32+
Use the dedicated `eq` field instead:
3133

3234
[cols="1,1"]
3335
|===
@@ -57,9 +59,9 @@ The `implicitEqualFilters` option of `excludeDeprecatedFields` has been removed.
5759

5860
=== Required `@node` directive
5961

60-
The `@node` directive is now required. GraphQL Object types without the `@node` directive will no longer be considered as Neo4j Node representations.
61-
62-
Queries and Mutations will be generated only for types with the `@node` directive.
62+
The `@node` directive is now required.
63+
GraphQL object types without the `@node` directive are no longer considered Neo4j node representations.
64+
Queries and mutations are only generated for types with the `@node` directive.
6365

6466
[cols="1,1"]
6567
|===
@@ -86,7 +88,7 @@ type Movie @node {
8688

8789
The deprecated `options` argument has been removed.
8890

89-
Consider the following type definitions:
91+
Consider the following type definition:
9092

9193
[source, graphql, indent=0]
9294
----
@@ -95,7 +97,7 @@ type Movie @node {
9597
}
9698
----
9799

98-
The migration is as below:
100+
The following shows the difference for options:
99101

100102
[cols="1,1"]
101103
|===
@@ -125,13 +127,13 @@ The `deprecatedOptionsArgument` option of `excludeDeprecatedFields` has been rem
125127

126128
=== Removed the deprecated `directed` argument
127129

128-
The deprecated `directed` argument has been removed from queries. This argument previously allowed you to specify whether relationships should be directed or undirected at query time.
129-
130-
Please use the `queryDirection` argument of the `@relationship` directive instead.
130+
The deprecated `directed` argument has been removed from queries.
131+
This argument previously allowed you to specify whether relationships should be directed or undirected at query time.
132+
Use the `queryDirection` argument of the `@relationship` directive instead.
131133

132134
The `directedArgument` option of `excludeDeprecatedFields` has been removed.
133135

134-
=== Accepted values of the `queryDirection` argument of `@relationship` has been changed
136+
=== Changed the accepted values of the `queryDirection` argument of `@relationship`
135137

136138
Following the removal of the `directed` argument, the `queryDirection` argument of the `@relationship` directive now only accepts two possible values:
137139

@@ -145,9 +147,10 @@ The following values are no longer supported:
145147
- `DIRECTED_ONLY`
146148
- `UNDIRECTED_ONLY`
147149

148-
=== The deprecated `typename_IN` filter has been removed
150+
=== Removed the deprecated `typename_IN` filter
149151

150-
The deprecated `typename_IN` filter has been removed, please use `typename` instead.
152+
The deprecated `typename_IN` filter has been removed.
153+
Use `typename` instead.
151154

152155
[cols="1,1"]
153156
|===
@@ -179,7 +182,7 @@ The `typename_IN` option of `excludeDeprecatedFields` has been removed.
179182

180183
`ID` fields are excluded from aggregation selection sets and aggregation filters.
181184

182-
=== Single element relationships have been removed
185+
=== Removed single element relationships
183186

184187
Single element relationships have been removed in favor of list relationships:
185188

@@ -203,7 +206,8 @@ type Movie @node {
203206
----
204207
|===
205208

206-
Single element relationships cannot be reliably enforced, leading to data inconsistent with the schema. If the GraphQL model requires 1-1 relationships (such as in federations) these can now be achieved with the `@cypher` directive instead:
209+
Single element relationships cannot be reliably enforced, leading to data inconsistent with the schema.
210+
If the GraphQL model requires one-to-one relationships (such as in federations) these can now be created with the `@cypher` directive instead:
207211

208212
[source, graphql, indent=0]
209213
----
@@ -219,13 +223,14 @@ type Movie @node {
219223
}
220224
----
221225

222-
=== Connect `overwrite` argument has been removed
226+
=== Removed the connect `overwrite` argument
223227

224228
The `overwrite` argument has been removed in connect operations.
225229

226230
In version 7.0.0, connect operations have been simplified to always create a new relationship between nodes, regardless of whether a relationship already exists.
231+
See xref:#connect-operation-details[].
227232

228-
If you need to update an existing relationship instead of creating a new one, use the `update` operation:
233+
If you must update an existing relationship instead of creating a new one, use the `update` operation:
229234

230235
[source, graphql, indent=0]
231236
----
@@ -251,9 +256,10 @@ mutation {
251256

252257
The `connectOrCreate` operation has been removed due to limitations on its feature set when compared to other operations.
253258

254-
=== Aggregate fields outside connection fields have been removed
259+
=== Removed aggregate fields outside connection fields
255260

256-
Deprecated aggregate fields have been removed from the schema. Use aggregation fields within the connection selection set instead.
261+
Deprecated aggregate fields have been removed from the schema.
262+
Use aggregation fields within the connection selection set instead.
257263

258264
[cols="1,1"]
259265
|===
@@ -288,9 +294,7 @@ The `deprecatedAggregateOperations` option has been removed from the `excludeDep
288294
=== Subscriptions are now opt-in
289295

290296
Subscriptions are no longer automatically generated for all `@node` types.
291-
292297
In version 7.x, the `@subscription` directive is required to enable this functionality.
293-
294298
You must now explicitly enable subscriptions using the `@subscription` directive in one of two ways:
295299

296300
- At the schema level to enable subscriptions for all types:
@@ -312,14 +316,15 @@ type Movie @node @subscription {
312316
=== Removed `publish` method from `Neo4jGraphQLSubscriptionsEngine`
313317

314318
The `publish` method has been removed from the `Neo4jGraphQLSubscriptionsEngine` interface as it is no longer used with Change Data Capture (CDC) based subscriptions.
315-
316319
Implementing this method on custom engines will no longer have an effect, and it is no longer possible to call `publish` directly on `Neo4jGraphQLSubscriptionsCDCEngine`.
317320

321+
[[connect-operation-details]]
318322
=== Connect operations now support multiple relationships between the same nodes
319323

320-
The connect operations have been enhanced to support creating multiple relationships between the same pair of nodes. When performing a connect operation between two nodes, a new relationship will always be created, even if one or more relationships of the same type already exist between those nodes.
321-
322-
This enables modeling scenarios where multiple distinct relationships of the same type are needed between the same nodes. For example, an actor playing multiple roles in the same movie.
324+
The connect operations have been enhanced to support creating multiple relationships between the same pair of nodes.
325+
When performing a connect operation between two nodes, a new relationship is always created, even if one or more relationships of the same type already exist between those nodes.
326+
This enables modeling scenarios where multiple distinct relationships of the same type are needed between the same nodes.
327+
For example, an actor playing multiple roles in the same movie.
323328

324329
=== Changed behavior for multiple relationships between nodes
325330

0 commit comments

Comments
 (0)