diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-07-11 00:30:02 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-07-11 00:30:02 +0900 |
| commit | 8c38ceb5b864791eb6e488fe0668e737fd78c2a0 (patch) | |
| tree | 6d0572f71b44d898390067b3598826df88c6d9e1 /backend/main.go | |
| parent | 8567b436134f75d017d07cc1949e79d4007df732 (diff) | |
| download | feedaka-8c38ceb5b864791eb6e488fe0668e737fd78c2a0.tar.gz feedaka-8c38ceb5b864791eb6e488fe0668e737fd78c2a0.tar.zst feedaka-8c38ceb5b864791eb6e488fe0668e737fd78c2a0.zip | |
feat(backend): implement GraphQL resolvers
Diffstat (limited to 'backend/main.go')
| -rw-r--r-- | backend/main.go | 2 |
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{}) |
