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

Schema in multiple files #131

Closed
theoks opened this issue Jun 14, 2018 · 3 comments
Closed

Schema in multiple files #131

theoks opened this issue Jun 14, 2018 · 3 comments

Comments

@theoks
Copy link

theoks commented Jun 14, 2018

Is there a way to have the schema spread out in multiple files? In large code bases having one large file might become difficult to maintain.

@blasterpistol
Copy link

blasterpistol commented Jun 14, 2018

run the script before your build process (maybe using go generate or Makefile)

schema.sh

for f in ./graphql/schema/*.gql; do cat $f; echo; done > ./graphql/schema_generated.gql

image

@vektah
Copy link
Collaborator

vektah commented Jun 15, 2018

I'm hoping to add support for graphql-import syntax into the new parser (until something lands in a spec).

@vektah
Copy link
Collaborator

vektah commented Jun 29, 2018

Closing in favour of #6

@vektah vektah closed this as completed Jun 29, 2018
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

3 participants