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

Validation Error: Add more extensions to the variable value type error #444

Open
rstaib opened this Issue Jan 2, 2019 · 0 comments

Comments

Projects
None yet
2 participants
@rstaib
Copy link
Collaborator

rstaib commented Jan 2, 2019

When firing the following query:

query AbitraryQuery($name: [String!]!) {
  # Omitted for brevity
}

I get the following validation error:

{
  message: "The variable value is not of the correct type.",
  extensions: {
    variableName: "name"
  }
}

But it would be nice to have a more concise error description here. For example what is the type I passed through and what type was expected actually. See the following desirable error:

{
  message: "The variable value is not of the correct type.",
  extensions: {
    variableName: "name",
	expectedType: "[String!]!",
	providedType: "String!"
  }
}

@rstaib rstaib added the enhancement label Jan 2, 2019

@michaelstaib michaelstaib added this to the Backlog milestone Jan 16, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment