Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Update schema.graphql to define errors Non-Nullable

Gabriel L Martineze7def05cd95e
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 081fb9564a..ab9d197784 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -183,6 +183,7 @@ All notable, unreleased changes to this project will be documented in this file.
- Fix bulk action checkboxes - #4618 by @dominik-zeglen
- Fix rendering user avatar when it's empty #4546 by @maarcingebala
- Remove Dashboard 2.0 files form Saleor repository - #4631 by @dominik-zeglen
+- Fix CreateToken mutation to use NonNull on errors field #5415 by @gabmartinez
### Other notable changes
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphql
index 64edfb5a78..93f0ffea8a 100644
--- a/saleor/graphql/schema.graphql
+++ b/saleor/graphql/schema.graphql
@@ -1320,7 +1320,7 @@ type CountryDisplay {
type CreateToken {
token: String
- errors: [Error]!
+ errors: [Error!]!
user: User
}