Complete server example, with query, mutation and subscriptions.
go run main.go -addr :8080
GraphQL endpoint will be available at http://127.0.0.1:8080/query
Navigate to playground on http://127.0.0.1:8080
And try following queries:
subscription {
fooUpdates
}
Then in new tab(s)
query {
getFoo
}
mutation {
setFoo(value: 123)
}
query {
getFoo
}