An implementation of GraphQL for Go / Golang
An implementation of GraphQL in Go. Follows the official reference implementation graphql-js.
Supports: queries, mutations & subscriptions.
godoc: https://pkg.go.dev/github.com/graphql-go/graphql
Friendly reminder links are available in case you would like to contribute back into our commitment with Go and open-source.
| Author | PayPal Link |
|---|---|
| Hafiz Ismail | Not available yet. |
| Chris Ramón | https://www.paypal.com/donate/?hosted_button_id=WHUQQYEMTRQBJ |
To install the library, run:
go get github.com/graphql-go/graphqlThe following is a simple example which defines a schema with a single hello string-type field and a Resolve method which returns the string world. A GraphQL query is performed against this schema with the resulting output printed in JSON format.
…For more complex examples, refer to the examples/ directory and graphql_test.go.
| Name | Author | Description |
|---|---|---|
| graphql-go-handler | Hafiz Ismail | Middleware to handle GraphQL queries through HTTP requests. |
| graphql-relay-go | Hafiz Ismail | Lib to construct a graphql-go server supporting react-relay. |
| golang-relay-starter-kit | Hafiz Ismail | Barebones starting point for a Relay application with Golang GraphQL server. |
| dataloader | Nick Randall | DataLoader implementation in Go. |
ExecuteSubscription producer goroutine leaks permanently when the consumer stops reading resultChannel (unbuffered send ignores p.Context.Done())
Reporting security vulnerabilities
No limit in nested selection sets
Increase tests coverage.
Don't discard data in case of an error
Disable graphql suggestions
OverlappingFieldsCanBeMergedRule stack-overflows on cyclic fragment spreads
Disable introspection
Release a new version
make a new release v0.8.2 to include PR that has been merged after the latest release v0.8.1