graphql: document hack

Michael Muré created

Change summary

graphql/gqlgen.yml | 4 ++++
1 file changed, 4 insertions(+)

Detailed changes

graphql/gqlgen.yml 🔗

@@ -5,6 +5,10 @@ model:
   filename: models/gen_models.go
 
 models:
+  # Hack: here, we define the Repository model as a struct we control to trick gqlgen into
+  # generating an empty resolver instead of a struct with data
+  # Hopefully in the future, gqlgen support this case and we can clean that, as well as
+  # moving gen_graph.go into it's own package
   Repository:
     model: github.com/MichaelMure/git-bug/graphql/resolvers.repoResolver
   Bug: