We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
After recent upgrade to newest gqlgen we encounter this error, it seems like it is newly generated for inputs like this
GearboxCreateLayoutInput: model: "map[string]interface{}"
interface conversion: interface{} is []interface{} not map[string]interface {}
It seems related to changes in 2839 or #2830
go run github.com/99designs/gqlgen version
go version
The text was updated successfully, but these errors were encountered:
to clarify,
input GearboxCreateLayoutInput { abc: String tiles: [GearboxLayoutTileInput]! } input GearboxLayoutTileInput { x: Int y: Int }
GearboxCreateLayoutInput: model: "map[string]interface{}" GearboxLayoutTileInput: model: "map[string]interface{}"
The tiles field ends up assumed as a map[string]interface{} instead of a []interface{}
tiles
map[string]interface{}
[]interface{}
case "tiles": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tiles")) data, err := ec.unmarshalNGearboxLayoutTileInput2mapᚄ(ctx, v) if err != nil { return it, err } if err = ec.resolvers.GearboxLayoutInput().Tiles(ctx, &it, data); err != nil { return it, err }
imo there should be a type switch when dealing with an interface instead
Sorry, something went wrong.
@endSly Hello, sorry to tag you in, but you might know if this issue is not tight to work you have done maybe?
It was after all bug in our application.
No branches or pull requests
What happened?
After recent upgrade to newest gqlgen we encounter this error, it seems like it is newly generated for inputs like this
It seems related to changes in 2839 or #2830
What did you expect?
Minimal graphql.schema and models to reproduce
versions
go run github.com/99designs/gqlgen version
?go version
?The text was updated successfully, but these errors were encountered: