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

Include files recursively #631

Closed
steebchen opened this issue Mar 17, 2019 · 1 comment · Fixed by #717
Closed

Include files recursively #631

steebchen opened this issue Mar 17, 2019 · 1 comment · Fixed by #717
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@steebchen
Copy link
Contributor

I can include multiple schema files:

schema:
  - "*.graphqls"

However, that doesn't work recursively.

When I spread my schema into multiple files, I currently have to import them as follows:

schema:
  - "api/*.graphqls"
  - "api/query/*.graphqls"
  - "api/mutation/*.graphqls"
  - "api/mutation/auth/*.graphqls"

I would like to import them recursively:

schema:
  - "api/**/*.graphqls"

It's also a simpler way to split the schema into multiple files instead of #6 in my opinion.

@vektah vektah added enhancement New feature or request good first issue Good for newcomers labels Mar 17, 2019
@vektah
Copy link
Collaborator

vektah commented Mar 17, 2019

Sounds good to me, #6 is useful for different reasons (remapping types from remote schemas) but its a long way off.

cbelsole added a commit to cbelsole/gqlgen that referenced this issue May 18, 2019
mathewbyrne pushed a commit that referenced this issue Jun 12, 2019
cgxxv pushed a commit to cgxxv/gqlgen that referenced this issue Mar 25, 2022
cgxxv pushed a commit to cgxxv/gqlgen that referenced this issue Mar 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants