diff --git a/plugin/modelgen/models.go b/plugin/modelgen/models.go index 8e976c65bf1..3e689c02c8a 100644 --- a/plugin/modelgen/models.go +++ b/plugin/modelgen/models.go @@ -241,7 +241,7 @@ func (m *Plugin) MutateConfig(cfg *config.Config) error { cfg.Models.Add(it, "github.com/99designs/gqlgen/graphql.String") } - if len(b.Models) == 0 && len(b.Enums) == 0 { + if len(b.Models) == 0 && len(b.Enums) == 0 && len(b.Interfaces) == 0 && len(b.Scalars) == 0 { return nil }