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.
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

I'm hoping to add support for graphql-import syntax into the new parser (until something lands in a spec).
Closing in favour of https://github.com/vektah/gqlgen/issues/6
Most helpful comment
run the script before your build process (maybe using go generate or Makefile)
schema.sh