Customize an error message when validating input fields #2053
Unanswered
grazianodev
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Suppose I add a custom, required field to
RegisterUserInput
:If I run the
registerUser
mutation with thecountry
variable set to 12 (an integer), I get the following error in the response:Field "registerUser" argument "input" requires type String, found 12.
Is there any way to customize this message as to make it user-readable? Something like The country you entered is invalid?
Beta Was this translation helpful? Give feedback.
All reactions