Skip to content

Latest commit

 

History

History

simpleserver

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Complete server example, with query, mutation and subscriptions.

Running

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
}