mirror of
https://github.com/datarhei/core.git
synced 2025-10-05 07:57:13 +08:00
Fix use of deprecated function
This commit is contained in:
@@ -26,7 +26,7 @@ func NewGraph(resolver resolver.Resolver, path string) *GraphHandler {
|
|||||||
path: path,
|
path: path,
|
||||||
}
|
}
|
||||||
|
|
||||||
g.queryHandler = handler.NewDefaultServer(graph.NewExecutableSchema(graph.Config{Resolvers: &g.resolver}))
|
g.queryHandler = handler.New(graph.NewExecutableSchema(graph.Config{Resolvers: &g.resolver}))
|
||||||
g.playgroundHandler = playground.Handler("GraphQL", path)
|
g.playgroundHandler = playground.Handler("GraphQL", path)
|
||||||
|
|
||||||
return g
|
return g
|
||||||
|
Reference in New Issue
Block a user