-
Notifications
You must be signed in to change notification settings - Fork 493
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
Scalar type error - Not supported #350
Comments
I solved it. I commenting on these lines of "graphql-go/internal/validation/validation.go" case *schema.Scalar, *schema.Enum:
return true, ""
/*if lit, ok := v.(*common.BasicLit); ok {
if validateBasicLit(lit, t) {
return true, ""
}
}*/ In Line 775 |
AFAIK, maps are not supported in the GraphQL specification: graphql/graphql-spec#101 |
@arturoeanton FWIW this should work (it is working for us at least) if you write your query using variables instead.
variables: {
"run": {
"foo": "hello world",
"bar": 123
}
} |
I also using a map interface in my sample, getting below error when I run:
My GraphQL type:
Go struct
Can someone please let me know what I'm doing wrong here? |
Not support map[string]interface{} type.
example:
I have this code:
The query is:
The error is:
And I expect this:
The text was updated successfully, but these errors were encountered: