simpleserver

command
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2025 License: MIT Imports: 12 Imported by: 0

README

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
}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL