-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
5,084 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
title: Ariadne 0.22 | ||
--- | ||
|
||
Ariadne 0.22 has been released! | ||
|
||
This release fixes the invalid error message being returned from the `GraphQLTransportWSHandler` if the GraphQL error occurred for the query or mutation operations. It also improves implementation of enums handling. | ||
|
||
<!--truncate--> | ||
|
||
## Fixed `GraphQLTransportWSHandler` error responses | ||
|
||
`GraphQLTransportWSHandler` would return an incorrect error payload for `query` and `mutation` operations that errored. `payload` for `error` message should be a list of GraphQL errors, but due to a bug in implementation, it would be a list with single `{errors: [...]}` result. | ||
|
||
|
||
## Improvements to enum handling | ||
|
||
GraphQL comes with a number of quirks when it comes to enums behavior, especially converting their GraphQL values to Python, and vice-versa. | ||
|
||
Previously Ariadne relied on the logic implemented by the `EnumType` bindable for handling this behavior, but Ariadne 0.22 moves this logic from `EnumType.bind_to_default_values` into a new `repair_schema_default_enum_values` utility. `validate_schema_enum_values` utility has been replaced with new `validate_schema_default_enum_values` utility. | ||
|
||
|
||
## Changelog | ||
|
||
- Deprecated `EnumType.bind_to_default_values` method. It will be removed in a future release. | ||
- Added `repair_schema_default_enum_values` to public API. | ||
- Removed `validate_schema_enum_values` and introduced `validate_schema_default_enum_values` in its place. This is a breaking change. | ||
- Fixed an invalid error message returned by the `GraphQLTransportWSHandler` for `query` and `mutation` operations. |
Oops, something went wrong.