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
the generation (go run github.com/99designs/gqlgen generate) errors out with
validation failed: packages.Load: /Users/tooni/qubit/gqlgen-todos3/graph/generated.go:2897:9: cannot use res (variable of type interface{}) as *any value in return statement: interface{} does not implement *any (type *any is pointer to interface, not interface)
because this invalid code is produced in generated.go
What happened?
the generation (
go run github.com/99designs/gqlgen generate
) errors out withvalidation failed: packages.Load: /Users/tooni/qubit/gqlgen-todos3/graph/generated.go:2897:9: cannot use res (variable of type interface{}) as *any value in return statement: interface{} does not implement *any (type *any is pointer to interface, not interface)
because this invalid code is produced in
generated.go
What did you expect?
non-erroring code. maybe just
&res
in the return?in v0.10.2, which is what i was trying to update from, this was the generated code for the same function
Minimal graphql.schema and models to reproduce
schema.graphqls
model.go
gqlgen.yml
versions
go run github.com/99designs/gqlgen version
?v0.17.31
go version
?go version go1.20.3 darwin/arm64
The text was updated successfully, but these errors were encountered: