We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd8d417 commit efc6fb5Copy full SHA for efc6fb5
server.go
@@ -5,6 +5,7 @@ import (
5
"github.com/glyphack/graphlq-golang/graph/generated"
6
"github.com/glyphack/graphlq-golang/internal/auth"
7
_ "github.com/glyphack/graphlq-golang/internal/auth"
8
+ database "github.com/glyphack/graphlq-golang/internal/pkg/db/mysql"
9
"log"
10
"net/http"
11
"os"
@@ -26,8 +27,8 @@ func main() {
26
27
28
router.Use(auth.Middleware())
29
- //database.InitDB()
30
- //database.Migrate()
+ database.InitDB()
31
+ database.Migrate()
32
server := handler.NewDefaultServer(generated.NewExecutableSchema(generated.Config{Resolvers: &graph.Resolver{}}))
33
router.Handle("/", playground.Handler("GraphQL playground", "/query"))
34
router.Handle("/query", server)
0 commit comments