-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
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
Strange functions on generated code #227
Comments
@rodrigo-brito can you provide your |
I tried to reproduce it in a simple example but don't works. Sometimes it happens but not everytime. |
I suspect you might have a versioning issue with your generated code. Make sure your |
I encountered same issue. But I cannot reproduce it with starwars example 🤔 |
my gqlgen binary version is 0.3.0 (381b346). |
schema.graphql
.gqlgen.yml schema: schema.graphql
exec:
filename: gql/generated.go
package: gql
model:
filename: gql/models_gen.go
package: gql
models:
Test:
model: path/to/my/package/gql.Test gql/model.go package gql
type Test struct {
Test string
} |
@mathewbyrne it is very strange. When we extract it, just don't happens. |
Just had the same Issue and found my problem. In the |
After upgrade to 0.3.0,
gqlgen
is generating strange functions on Resolver Interface:ResolverRoot Interface:
In the docs and examples these fields don't exists.
The text was updated successfully, but these errors were encountered: