You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since we know that we have a field defined with first_name, but expect it to be queried like firstName, is it possible to improve the error message to point to/suggest the correct field name? As someone new to GraphQL and graphql-ruby, this had me stuck for a non-trivial amount of time wondering what I did wrong!
An improvement might look like:
Field 'first_name' doesn't exist on type 'Person'. Did you mean `firstName`?
The text was updated successfully, but these errors were encountered:
I wish I had time to work on this improvement, but I don't :'( I'm going to close this because I don't plan to work on it, but if someone wants to submit an improvement, I'd be glad to review it!
For a Ruby GraphQL schema defined like
And a query like:
I get an error like this:
Since we know that we have a field defined with
first_name
, but expect it to be queried likefirstName
, is it possible to improve the error message to point to/suggest the correct field name? As someone new to GraphQL and graphql-ruby, this had me stuck for a non-trivial amount of time wondering what I did wrong!An improvement might look like:
The text was updated successfully, but these errors were encountered: