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
@requires directive breaks code generation when @entityResolver is used.
Geneation brakes with an error:
federation: federation.gotpl: template: federation.gotpl:160:18: executing "federation.gotpl" at <.Fields>: can't evaluate field Fields in type *federation.Requires
What did you expect?
Resolvers should be generated.
Minimal graphql.schema and models to reproduce:
Go to plugin/federation
Add next type to testdata/entityresolver/schema.graphql
Got: federation: federation.gotpl: template: federation.gotpl:160:18: executing "federation.gotpl" at <.Fields>: can't evaluate field Fields in type *federation.Requires
Expected: no error
versions
gqlgen version : v0.15.1
go version: 1.17.1
The text was updated successfully, but these errors were encountered:
What happened?
@requires directive breaks code generation when @entityResolver is used.
Geneation brakes with an error:
What did you expect?
Resolvers should be generated.
Minimal graphql.schema and models to reproduce:
plugin/federation
testdata/entityresolver/schema.graphql
go generate
Got:
federation: federation.gotpl: template: federation.gotpl:160:18: executing "federation.gotpl" at <.Fields>: can't evaluate field Fields in type *federation.Requires
Expected: no error
versions
gqlgen version
: v0.15.1go version
: 1.17.1The text was updated successfully, but these errors were encountered: