package graph // Code generation. gqlgen reads gqlgen.yml in this directory and rewrites // api/generated.go, model/models_gen.go and the stubs in schema.resolvers.go; // implementations already in that file are carried through untouched. // // It is run through the module graph rather than as `go run // github.com/99designs/gqlgen@v0.17.36`: gqlgen v0.17.36's own module pins // golang.org/x/tools v0.9.3, which does not compile under this toolchain, while // the version this module selects does. // // The generator is deliberately not imported anywhere. A blank import under a // `generate` build tag — which is how git.sr.ht's api/graph does it — would put // the whole codegen dependency tree (a CLI framework, a markdown renderer, the // Go analysis packages) into this service's go.mod permanently, for the sake of // a tool that runs when the schema changes. // //go:generate go run github.com/99designs/gqlgen generate