Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
handler
✓ github.com/graphql-go/handler
Serve a GraphQL endpoint
package main
import (
"net/http"
"github.com/graphql-go/handler"
"github.com/graphql-go/graphql"
)
func main() {
schema, _ := graphql.NewSchema(graphql.SchemaConfig{})
h := handler.New(&handler.Config{
Schema: &schema,
})
http.Handle("/graphql", h)
http.ListenAndServe(":8080", nil)
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
0.2.4latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.