aboutsummaryrefslogtreecommitdiffstats
path: root/graphql
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-07-29 20:58:43 +0200
committerMichael Muré <batolettre@gmail.com>2018-07-29 20:58:43 +0200
commitf0f927645bed92a927dc8a68a9ea38a1c32fa556 (patch)
tree03798814653d339ce4075d577e98185fdcab4d15 /graphql
parentc58aa18a2d0683b0a1e6f0597724e67b500503a0 (diff)
downloadgit-bug-f0f927645bed92a927dc8a68a9ea38a1c32fa556.tar.gz
graphql: document hack
Diffstat (limited to 'graphql')
-rw-r--r--graphql/gqlgen.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/graphql/gqlgen.yml b/graphql/gqlgen.yml
index b0b89ab7..d0e579a2 100644
--- a/graphql/gqlgen.yml
+++ b/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: