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
gqlgen generates non compilable code when schema has Entity interfaces.
I've noticed this after trying to upgrade gqlgen from v0.17.31 -> v0.17.34
v0.17.31
v0.17.34
It should generate compilable code
interface User @key(fields: "id") { id: ID! name: String! email: String! } type Customer implements User @key(fields: "id") { id: ID! name: String! email: String! } extend type Query { me: User! }
gqlgen is generating this model for the interface, but it doesn't implement the fedruntime.Entity interface.
fedruntime.Entity
type User interface { IsUser() GetID() string GetName() string GetEmail() string }
go run github.com/99designs/gqlgen version
go version go1.20.5 darwin/arm64
The text was updated successfully, but these errors were encountered:
Running into this as well.
Sorry, something went wrong.
I have a related PR up which should address this: #2868
No branches or pull requests
What happened?
gqlgen generates non compilable code when schema has Entity interfaces.
I've noticed this after trying to upgrade gqlgen from
v0.17.31
->v0.17.34
What did you expect?
It should generate compilable code
Minimal graphql.schema and models to reproduce
gqlgen is generating this model for the interface, but it doesn't implement the
fedruntime.Entity
interface.versions
go run github.com/99designs/gqlgen version
?v0.17.34
go version go1.20.5 darwin/arm64
The text was updated successfully, but these errors were encountered: