Open Junaid-Ahm opened 2 years ago
This is a much needed feature.
+1 for this
This is exactly what I expected follow-schema
to do and is crucial for those of us who like to split our packages up by domain and not function.
This is also important for the build cache. We've gotten to a huge circuit and compiling after regeneration takes 20+ gigabytes of RAM and about 30 minutes of real time on the Apple M1. If you break up the resolvers into different packages it will work faster
+1
+1
Did anyone find a decent workaround for this?
Question to the maintainers - is this a feature whose addition would be welcomed? If yes, would you be open to somebody opening a PR with such functionality (and helping with review/getting it across)?
Just trying to sense out your view, before dedicating time to it. Thank you in advance for voicing your thoughts!
Hi there,
What happened?
I have my
.graphql
files organised into sub-directories, egcompany
,user
etcThough I am using
follow-schema
option (see below) to generate resolvers, generated resolver go files are not being organised into sub packages (underresolver
package). Instead all of them are put directly into main resolver directory.Here is my
gqlgen.yml
What did you expect?
Generated resolver go files organised into sub-packages
Minimal graphql.schema and models to reproduce
Nothing to do with schema and model I believe. Can be reproduced with any two or more
.graphql
files organised into sub-directories.versions
go run github.com/99designs/gqlgen version
: v0.17.2go version
: 1.18