Registry / web-framework / graphql-go-handler

graphql-go-handler

JSON →
library0.2.4gogounverified

A GraphQL HTTP handler for Go that provides a simple way to serve GraphQL APIs.

go get github.com/graphql-go/handler
INSTALL
IMPORT
SIG · GRAPHQL-GO-HANDLER
G
graphql-go-handler
web-frameworkgov0.2.4
harness data pending
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.

Agent activity
9 hits · last 30 days
node
8
Resources
graphql-go-handler — go get graphql-go-handler · libregistry