It would be nice to be able to customize the package the helper package / funcs return. From what I can tell it will always assume the package name is graphql_models even if I change the directory to be app as shown below.
func main() {
cfg, err := config.LoadConfigFromDefaultLocations()
if err != nil {
fmt.Fprintln(os.Stderr, "failed to load config", err.Error())
os.Exit(2)
}
convertHelpersDir := "helpers"
sqlboilerDir := "models"
gqlgenModelDir := "app"
err = api.Generate(cfg,
api.AddPlugin(gbgen.NewConvertPlugin(
convertHelpersDir, // directory where convert.go, convert_input.go and preload.go should live
sqlboilerDir, // directory where sqlboiler files are put
gqlgenModelDir, // directory where gqlgen models live
)),
It would be nice to be able to customize the package the helper package / funcs return. From what I can tell it will always assume the package name is
graphql_models
even if I change the directory to beapp
as shown below.If this package name could be customized or at least respect the
gqlgenModelDir
variable that would be nice https://github.com/web-ridge/gqlgen-sqlboiler/blob/master/convert.gotpl#L31