Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGraphQLHandler ¶
func NewGraphQLHandler(schema graphql.Schema, debug bool) func(w http.ResponseWriter, r *http.Request)
NewGraphQLHandler creates a new handler
Types ¶
type GraphQLHandler ¶
type GraphQLHandler struct { //Schema graphql schema used for handling requests Schema graphql.Schema //Debug show info and error messages on output log Debug bool }
GraphQLHandler http handler for handling GraphQL requests according to https://graphql.org/learn/serving-over-http/
Click to show internal directories.
Click to hide internal directories.