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
I upgraded gqlgen from 0.9.2 to 0.10.1 (git-bug/git-bug#221) and now the generated code doesn't compile.
What did you expect?
A working codebase after the upgrade because gqlgen is a high quality package. It was pretty close though :)
I get errors like:
graphql/graph/gen_graph.go:14196:21: cannot use v (type identity.Interface) as type *identity.Interface in argument to ec._Identity:
*identity.Interface is pointer to interface, not interface
graphql/graph/gen_graph.go:15164:21: cannot use v (type identity.Interface) as type *identity.Interface in argument to ec._Identity:
*identity.Interface is pointer to interface, not interface
identity.Interface is obviously an interface.
The generated code leading to the error is:
func (ec *executionContext) marshalNIdentity2githubᚗcomᚋMichaelMureᚋgitᚑbugᚋidentityᚐInterface(ctx context.Context, sel ast.SelectionSet, v identity.Interface) graphql.Marshaler {
if v == nil {
if !ec.HasError(graphql.GetResolverContext(ctx)) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
return ec._Identity(ctx, sel, v)
}
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
What happened?
I upgraded gqlgen from 0.9.2 to 0.10.1 (git-bug/git-bug#221) and now the generated code doesn't compile.
What did you expect?
A working codebase after the upgrade because gqlgen is a high quality package. It was pretty close though :)
I get errors like:
identity.Interface
is obviously an interface.The generated code leading to the error is:
Minimal graphql.schema and models to reproduce
You can have a look on my full project. The directive to generate is at https://github.com/MichaelMure/git-bug/blob/master/graphql/handler.go#L1
Let me know if you need something more minimal.
The text was updated successfully, but these errors were encountered: