diff --git a/config/config.go b/config/config.go index 5fd528a..2d31084 100644 --- a/config/config.go +++ b/config/config.go @@ -136,6 +136,7 @@ func LoadConfig(filename string) (*Config, error) { } // https://github.com/99designs/gqlgen/blob/3a31a752df764738b1f6e99408df3b169d514784/codegen/config/config.go#L120 + files := StringList{} for _, f := range cfg.SchemaFilename { var matches []string @@ -168,16 +169,16 @@ func LoadConfig(filename string) (*Config, error) { } } - files := StringList{} for _, m := range matches { if !files.Has(m) { files = append(files, m) } } - cfg.SchemaFilename = files } + cfg.SchemaFilename = files + models := make(config.TypeMap) if cfg.Models != nil { models = cfg.Models