-
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
New broken prelude.resolvers.go file with v0.17.0 #2026
Comments
@nathani-axis Could you share me your gqlgen.yml and your go.mod? (I supported around prelude maybe I can understand why happened) Thanks |
Probably this link help you #2018 |
I think we can close this. Please @nathani-axis speak with us... |
|
Can you please create a MINIMAL reproduction? This is crazy. Here no problems at all! |
@frederikhors I figured it out, errors are confusing, in enums if your are using autobinding and didn't implement marshalling and unmarshalling generated code is broken with such weird error. |
It seems to be tough to make minimal reproduction since I have huge package with lots of types, but once I removed autobind and did manual binding it works ok |
Ok. We are not using the TRAGIC What can we do to improve errors? |
I guess we need somehow detect that fields that we are binding are implementing marshalling methods. |
run go get github.com/vektah/gqlparser/[email protected] |
I just encountered something really similar when upgrading from 0.17.38 to 0.17.39. I had to back out the upgrade because I didn't have time to debug. |
Hey, I ran into this issue when I upgraded entgql to use Edit: I'm wrong, this PR causes the issue on Edit: In our case, we already have the type Edit: Link a solution #227 (comment) |
I had the same issue, and I wasn't able to upgrade the gqlgen version anymore. All Thanks to the #227 (comment), adding the
|
What happened?
Since v0.17.0, running gqlgen throws some errors:
It generates a prelude.resolvers.go file that is not generated in v0.16.0, which seems to have some errors in it.
What did you expect?
gqlgen v0.17.0 generates the same proper files as gqlgen v0.16.0, without errors.
Minimal graphql.schema and models to reproduce
versions
go run github.com/99designs/gqlgen version
:v0.17.0
(latest as of writing this issue)go version
:go version go1.16.1 linux/amd64
The text was updated successfully, but these errors were encountered: