Sample GraphQL application using both https://github.com/graphql-go/graphql and https://github.com/graph-gophers/graphql-go
go get github.com/svobodal/graphqlsample
Build:
cd src/github.com/svobodal/graphqlsample/cmd/gqlgo
go build
Run server:
./gqlgo
or
Build:
cd src/github.com/svobodal/graphqlsample/cmd/gophers
go build
Run server:
./gophers
curl -X POST http://localhost:7070/query -d '{"query": "{ video(id: 10){name} }"}'