Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 73 additions & 0 deletions modules/ROOT/pages/migration/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The deprecated `_NOT` filters on `@relationship` fields such as:
The following deprecated `_NOT` filters on `@relationship` are removed and no longer supported:


- `actors_NOT`
- `actorsConnection_NOT`

Are removed from the schema and no longer supported, to achieve the same result use the `NONE` quantifier.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Are removed from the schema and no longer supported, to achieve the same result use the `NONE` quantifier.
To achieve the same in version 6.x of the GraphQL library, 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

Expand Down