Skip to content
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

Autobind models #761

Merged
merged 1 commit into from
Jun 26, 2019
Merged

Autobind models #761

merged 1 commit into from
Jun 26, 2019

Conversation

vektah
Copy link
Collaborator

@vektah vektah commented Jun 26, 2019

This PR adds a new config key autobind which is a list of packages to search for GraphQL names in. If they are found they will automatically be added to models for you. This should avoid a bunch of boilerplate.

Fixes #621

It probably only works with go modules, sorry, you should update.

I have:

  • Added tests covering the bug / feature (see testing)
  • Updated any relevant documentation (see docs)

@vektah vektah merged commit 17ee40b into master Jun 26, 2019
@vektah vektah deleted the autobinding branch June 26, 2019 23:01
@vektah vektah added the v0.9.1 fixed in v0.9.1 label Jun 27, 2019
cgxxv pushed a commit to cgxxv/gqlgen that referenced this pull request Mar 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v0.9.1 fixed in v0.9.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Automatically Infer Existing Models from Pattern
1 participant