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

follow-schema support for model files #3146

Open
carldunham opened this issue Jun 18, 2024 · 0 comments
Open

follow-schema support for model files #3146

carldunham opened this issue Jun 18, 2024 · 0 comments

Comments

@carldunham
Copy link
Contributor

What happened?

Resolvers can be broken up into separate files that track schema filenames (but not directories, separate issue). This is done with

resolver:
  layout: follow-schema

The {name} token can also be used in the filename that gets generated. This is also implemented for exec.

However, the modelgen plugin does not have support for this.

What did you expect?

That model files could be generated by name following schema.

Minimal graphql.schema and models to reproduce

versions

  • go run github.com/99designs/gqlgen version?
    • v0.17.48
  • go version?
    • go version go1.22.4 darwin/arm64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant