aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'backend/main.go')
-rw-r--r--backend/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/main.go b/backend/main.go
index c7bd7ed..cea08fd 100644
--- a/backend/main.go
+++ b/backend/main.go
@@ -503,7 +503,7 @@ func main() {
e.GET("/static/*", echo.WrapHandler(http.FileServer(http.FS(staticFS))))
// Setup GraphQL server
- srv := handler.New(graphql.NewExecutableSchema(graphql.Config{Resolvers: &graphql.Resolver{}}))
+ srv := handler.New(graphql.NewExecutableSchema(graphql.Config{Resolvers: &graphql.Resolver{DB: db}}))
srv.AddTransport(transport.Options{})
srv.AddTransport(transport.GET{})