Skip to content

Commit 8c13f5f

Browse files
Merge pull request #194 from MacondoExpress/_NOT-removal
Add `_NOT` breaking change in the migration guide.
2 parents e863968 + 60e5b25 commit 8c13f5f

File tree

1 file changed

+73
-0
lines changed

1 file changed

+73
-0
lines changed

modules/ROOT/pages/migration/index.adoc

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,79 @@ npm update @neo4j/graphql
2020

2121
Here is a list of all the breaking changes from version 5.0.0 to 6.0.0.
2222

23+
=== The deprecated `_NOT` filters are no longer supported
24+
25+
The following deprecated `NOT` filters are removed from the schema since they are no longer supported:
26+
27+
- `_NOT`
28+
- `_NOT_CONTAINS`
29+
- `_NOT_ENDS_WITH`
30+
- `_NOT_IN`
31+
- `_NOT_STARTS_WITH`
32+
- `_NOT_INCUDES`
33+
- `node_NOT`
34+
- `edge_NOT`
35+
36+
37+
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.
38+
39+
[cols="1,1"]
40+
|===
41+
|Before | Now
42+
43+
a|
44+
[source, graphql, indent=0]
45+
----
46+
query {
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+
}
84+
}
85+
----
86+
a|
87+
[source, graphql, indent=0]
88+
----
89+
query {
90+
movies(where: { actors_NONE: { name: "Keanu" } }) {
91+
title
92+
}
93+
}
94+
----
95+
|===
2396

2497
== Deprecations and warnings
2598

0 commit comments

Comments
 (0)