diff --git a/modules/ROOT/pages/migration/index.adoc b/modules/ROOT/pages/migration/index.adoc index 6f32fcb3..544b01b6 100644 --- a/modules/ROOT/pages/migration/index.adoc +++ b/modules/ROOT/pages/migration/index.adoc @@ -20,6 +20,79 @@ npm update @neo4j/graphql Here is a list of all the breaking changes from version 5.0.0 to 6.0.0. +=== The deprecated `_NOT` filters are no longer supported + +The following deprecated `NOT` filters are removed from the schema since they are no longer supported: + + - `_NOT` + - `_NOT_CONTAINS` + - `_NOT_ENDS_WITH` + - `_NOT_IN` + - `_NOT_STARTS_WITH` + - `_NOT_INCUDES` + - `node_NOT` + - `edge_NOT` + + +To achieve the same in version 6.x of the GraphQL library, use the xref:/queries-aggregations/filtering.adoc#_boolean_operators[boolean `NOT` operator] instead. + +[cols="1,1"] +|=== +|Before | Now + +a| +[source, graphql, indent=0] +---- +query { + movies(where: { title_NOT: "The Matrix" }) { + title + } +} + +---- +a| +[source, graphql, indent=0] +---- +query { + movies(where: { NOT: { title: "The Matrix" } }) { + title + } +} +---- +|=== + +=== The deprecated `_NOT` on `@relationship` filters are no longer supported + +The deprecated `_NOT` filters on `@relationship` fields such as: + + - `actors_NOT` + - `actorsConnection_NOT` + +Are removed from the schema and no longer supported, to achieve the same result use the `NONE` quantifier. + +[cols="1,1"] +|=== +|Before | Now + +a| +[source, graphql, indent=0] +---- +query { + movies(where: { actors_NOT: { name: "Keanu" } }) { + title + } +} +---- +a| +[source, graphql, indent=0] +---- +query { + movies(where: { actors_NONE: { name: "Keanu" } }) { + title + } +} +---- +|=== == Deprecations and warnings