-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Make internal error messages more helpful #174
Comments
When I passed the wrong type to a mutation it failed silently. Easy and useful case for good error message. mutation: gql`
mutation onAwesomeMutation($quantity: String!) { # <--- should be Int!
awesomeMutation (quantity: $quantity)
}
`, |
I think this issue is too general. It will be much easier to solve these as they come along. Every time someone files an issue we should follow a process in which we do the following:
In essence when an issue comes up we shouldn't just fix that issue, but also prevent similar issues from occurring again in the future. |
"GraphQL spec has..." -> "the GraphQL spec has..."
This is a good idea overall - we should try to write tests for adverse situations and make sure we print good errors in those cases. Various invalid GraphQL responses, etc.
The text was updated successfully, but these errors were encountered: