Skip to content

Commit cb0d84c

Browse files
add relationship case as separate example for the _NOT deprecation
1 parent d1b33c8 commit cb0d84c

File tree

1 file changed

+43
-6
lines changed

1 file changed

+43
-6
lines changed

modules/ROOT/pages/migration/index.adoc

Lines changed: 43 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ The deprecated `_NOT` filters such as:
3030
- `_NOT_IN`
3131
- `_NOT_STARTS_WITH`
3232
- `_NOT_INCUDES`
33+
- `node_NOT`
34+
- `edge_NOT`
35+
3336

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

@@ -41,18 +44,52 @@ a|
4144
[source, graphql, indent=0]
4245
----
4346
query {
44-
movies(where: { title_NOT: "The Matrix" }) {
45-
title
46-
}
47+
movies(where: { title_NOT: "The Matrix" }) {
48+
title
49+
}
50+
}
51+
52+
----
53+
a|
54+
[source, graphql, indent=0]
55+
----
56+
query {
57+
movies(where: { NOT: { title: "The Matrix" } }) {
58+
title
59+
}
60+
}
61+
----
62+
|===
63+
64+
=== The deprecated `_NOT` on `@relationship` filters are no longer supported
65+
66+
The deprecated `_NOT` filters on `@relationship` fields such as:
67+
68+
- `actors_NOT`
69+
- `actorsConnection_NOT`
70+
71+
Are removed from the schema and no longer supported, to achieve the same result use the `NONE` quantifier.
72+
73+
[cols="1,1"]
74+
|===
75+
|Before | Now
76+
77+
a|
78+
[source, graphql, indent=0]
79+
----
80+
query {
81+
movies(where: { actors_NOT: { name: "Keanu" } }) {
82+
title
83+
}
4784
}
4885
----
4986
a|
5087
[source, graphql, indent=0]
5188
----
5289
query {
53-
movies(where: { NOT: { title: "The Matrix" } }) {
54-
title
55-
}
90+
movies(where: { actors_NONE: { name: "Keanu" } }) {
91+
title
92+
}
5693
}
5794
----
5895
|===

0 commit comments

Comments
 (0)