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 46dcf6d commit 7465fbaCopy full SHA for 7465fba
examples/server/main.go
@@ -63,7 +63,7 @@ func main() {
63
64
var mutationType = graphql.NewObject(
65
graphql.ObjectConfig{
66
- Name: "SomeMutation",
+ Name: "Mutation",
67
Fields: graphql.Fields{
68
"updateDocument": &graphql.Field{
69
Type: documentType,
@@ -158,9 +158,11 @@ func main() {
158
})
159
160
graphqlHandler := handler.New(&handler.Config{
161
- Schema: &schema,
162
- Pretty: true,
163
- GraphiQL: true,
+ Schema: &schema,
+ Pretty: true,
+ GraphiQL: true,
164
+ EndpointURL: "http://localhost:8085",
165
+ SubscriptionsEndpoint: "ws://localhost:8085/subscriptions",
166
167
168
http.Handle("/", graphqlHandler)
0 commit comments