We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I would like to prepare a Resolver for id in the query and return the ID value of model in another field.
From Version 0.8, setting it makes the ID field duplicated in ComplexityRoot in generated.go.
type ComplexityRoot struct { Mutation struct { CreateTodo func(childComplexity int, input NewTodo) int } Query struct { Todos func(childComplexity int) int } Todo struct { ID func(childComplexity int) int ID func(childComplexity int) int Text func(childComplexity int) int Done func(childComplexity int) int User func(childComplexity int) int } User struct { ID func(childComplexity int) int Name func(childComplexity int) int } }
type Todo { id: ID! todoId: Int! text: String! done: Boolean! user: User! }
models: Todo: model: gqlgen-sand/models.Todo fields: id: resolver: true todoId: fieldName: ID
package models type Todo struct { ID int Text string Done bool }
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Expected Behaviour
I would like to prepare a Resolver for id in the query and return the ID value of model in another field.
Actual Behavior
From Version 0.8, setting it makes the ID field duplicated in ComplexityRoot in generated.go.
Minimal graphql.schema and models to reproduce
schema.graphql
gqlgen.yml
models/todo.go
The text was updated successfully, but these errors were encountered: