diff options
author | Michael Muré <batolettre@gmail.com> | 2018-07-29 23:48:52 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-07-29 23:48:52 +0200 |
commit | 5b70e3452a4685112fd005fef0727930ebd2adaf (patch) | |
tree | 8ccc03847dd09d48f2c979772a6d0bb23fd8cbcc /graphql/handler.go | |
parent | 64354c7ce3ff8d1c8c780a93b46c933781851edf (diff) | |
download | git-bug-5b70e3452a4685112fd005fef0727930ebd2adaf.tar.gz |
graphql: fix knot in the graphql/gqlgen usage
Diffstat (limited to 'graphql/handler.go')
-rw-r--r-- | graphql/handler.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/graphql/handler.go b/graphql/handler.go index d1906dda..0069ce44 100644 --- a/graphql/handler.go +++ b/graphql/handler.go @@ -3,6 +3,7 @@ package graphql import ( + "github.com/MichaelMure/git-bug/graphql/graph" "github.com/MichaelMure/git-bug/graphql/resolvers" "github.com/MichaelMure/git-bug/repository" "github.com/vektah/gqlgen/handler" @@ -10,9 +11,9 @@ import ( ) func NewHandler(repo repository.Repo) http.Handler { - backend := resolvers.NewRootResolver() + backend := resolvers.NewBackend() backend.RegisterDefaultRepository(repo) - return handler.GraphQL(resolvers.NewExecutableSchema(backend)) + return handler.GraphQL(graph.NewExecutableSchema(backend)) } |