Strange functions in generated code #2018
Replies: 4 comments
-
@mukundshah this is because you used gqlgen v0.16.0 and gqlparser v2.4.0. Any of these ways will work.
|
Beta Was this translation helpful? Give feedback.
-
I upgraded the gqlgen@master. Now it's working. |
Beta Was this translation helpful? Give feedback.
-
I upgrade the dependencies and it fixed the issues. Give it a try
|
Beta Was this translation helpful? Give feedback.
-
Current the latest commit is the same as v0.17.1 release. |
Beta Was this translation helpful? Give feedback.
-
What happened?
While running
go generate
, I get the following errors:Despite the error, it generates the
generated.go
file and random new functions are present there:Until this morning, it was working fine.
Minimal graphql.schema and models to reproduce
graphql.schema
models.go
resolvers.go
main.go
versions
gqlgen version
? :0.16.0
go version
? :1.17
Beta Was this translation helpful? Give feedback.
All reactions