-
Notifications
You must be signed in to change notification settings - Fork 15
Add _NOT breaking change in the migration guide.
#194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
d1b33c8
add _NOT as breaking changes
MacondoExpress c1cc709
Apply suggestions from code review
MacondoExpress cb0d84c
add relationship case as separate example for the _NOT deprecation
MacondoExpress 60e5b25
Merge branch '_NOT-removal' of github.com:MacondoExpress/docs-graphql…
MacondoExpress File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -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: | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| - `actors_NOT` | ||||||
| - `actorsConnection_NOT` | ||||||
|
|
||||||
| Are removed from the schema and no longer supported, to achieve the same result use the `NONE` quantifier. | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| [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 | ||||||
|
|
||||||
|
|
||||||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.