diff --git a/codegen/config/config.go b/codegen/config/config.go index 7a7232b58d9..0c72420e602 100644 --- a/codegen/config/config.go +++ b/codegen/config/config.go @@ -368,7 +368,7 @@ func (c *Config) InjectBuiltins(s *ast.Schema) { } for typeName, entry := range extraBuiltins { - if t, ok := s.Types[typeName]; ok && t.Kind == ast.Scalar { + if t, ok := s.Types[typeName]; !c.Models.Exists(typeName) && ok && t.Kind == ast.Scalar { c.Models[typeName] = entry } }