Skip to content

Commit

Permalink
add relationship case as separate example for the _NOT deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
MacondoExpress committed Oct 17, 2024
1 parent d1b33c8 commit cb0d84c
Showing 1 changed file with 43 additions and 6 deletions.
49 changes: 43 additions & 6 deletions modules/ROOT/pages/migration/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ The deprecated `_NOT` filters such as:
- `_NOT_IN`
- `_NOT_STARTS_WITH`
- `_NOT_INCUDES`
- `node_NOT`
- `edge_NOT`


Are removed from the schema and no longer supported, to achieve the same result use the logical `NOT` operator.

Expand All @@ -41,18 +44,52 @@ a|
[source, graphql, indent=0]
----
query {
movies(where: { title_NOT: "The Matrix" }) {
title
}
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: { NOT: { title: "The Matrix" } }) {
title
}
movies(where: { actors_NONE: { name: "Keanu" } }) {
title
}
}
----
|===
Expand Down

0 comments on commit cb0d84c

Please sign in to comment.