From f0f927645bed92a927dc8a68a9ea38a1c32fa556 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Mur=C3=A9?= Date: Sun, 29 Jul 2018 20:58:43 +0200 Subject: [PATCH] graphql: document hack --- graphql/gqlgen.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/graphql/gqlgen.yml b/graphql/gqlgen.yml index b0b89ab75f1c9e614234e5c3a4ece72d32296d3e..d0e579a26a985490d5f529ab730a813ecb417fd8 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: