aboutsummaryrefslogtreecommitdiffstats
path: root/graphql/handler.go
diff options
context:
space:
mode:
Diffstat (limited to 'graphql/handler.go')
-rw-r--r--graphql/handler.go5
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))
}