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 this is about variables, this actually should be addressed in the router. It's not a validation error but an execution error. The query is valid, but the JSON inputs in the HTTP request are not.
Recreating the issue from the Router since this is where validation happens now: apollographql/router#2984
Description
Previously on the Gateway, operation validation errors would be verbose about the serialization issues, in particular with input and arguments.
For example here is the error message from Gateway on passing null to a
Float!
inside a nested param blockVariable "$params" got invalid value null at "params.coordinates.latitude"; Expected non-nullable type "Float!" not to be null.
This is clear on what the error is and where is needs to be fixed.
In the Router all we get back is this:
invalid type for variable: 'params'
When the input arguments are large this can be much more problematic to debug and find where within
params
the error occurredPossible Solutions
Router includes parsing/serialization error locations when parsing variables and input.
The text was updated successfully, but these errors were encountered: