Does a simple & working "Hello World!" GraphQL server code in Go exist?
There is a deficiency in tutorials concerning that topic, especially because graphql-go/graphql
is currently a work-in-progress.
Does a simple & working "Hello World!" GraphQL server code in Go exist?
There is a deficiency in tutorials concerning that topic, especially because graphql-go/graphql
is currently a work-in-progress.
I've actually spent a bit of time this weekend creating a golang graphql server for a presentation upcoming this week, that has nothing to do with golang graphql. I don't know any golang, and never put together a server, I also threw in Neo4j, it's been an adventure, the hello world
example is the following;
https://github.com/graphql-go/graphql/blob/master/examples/hello-world/main.go
In addition I used graphql-go/handler
to create an endpoint;
https://github.com/graphql-go/handler
Finally added graphiql
in order to check out my queries;
https://github.com/mnmtanish/go-graphiql
I started with getting the hello world
example to be visible in go-graphiql
, but using the handler
to expose the schema.