-
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
Resolver field was not generated? #658
Comments
Solved. Just add field resolver config in the gqlgen.yml |
For anyone coming to this issue from google, this is what you should do to have the other resolvers generated: #350 (comment) |
@ShawnRong I see you're using Thanks. |
@frederikhors , Here's the link of |
What happened?
I'm using
gqlgen
to generate resolver automatically.But when I apply relationships in my models, the related model field resolve was not generate correctly.Here's my defined models:
models/Article.go
models/User.go
models/Comment.go
models/Tag.go
What did you expect?
I suppose the
tagResolver
commentResolver
will auto generated in myresolver.go
file, right? But I only getmutationResolver
andqueryResolver
Minimal graphql.schema and models to reproduce
versions
0.8.2
1.11.4
Anyone can help me out? Thanks
The text was updated successfully, but these errors were encountered: