Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
G

graphql

> 后端框架
Open source

An implementation of GraphQL for Go / Golang

10.2K stars0 likes3 views
WebsiteGitHub

About

An implementation of GraphQL for Go / Golang

graphql

An implementation of GraphQL in Go. Follows the official reference implementation graphql-js.

Supports: queries, mutations & subscriptions.

Documentation

godoc: https://pkg.go.dev/github.com/graphql-go/graphql

Contribute Back

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

Getting Started

To install the library, run:

bash
go get github.com/graphql-go/graphql

The 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.

Third Party Libraries

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.

Blog Posts

  • Golang + GraphQL + Relay

Issues· 246 open

View all issuesOpen on GitHub
  • #758

    ExecuteSubscription producer goroutine leaks permanently when the consumer stops reading resultChannel (unbuffered send ignores p.Context.Done())

    Updated Aug 26, 2026
  • #755

    Reporting security vulnerabilities

    Updated Jul 17, 2026
  • #754

    No limit in nested selection sets

    Updated Jul 7, 2026
  • #751

    Increase tests coverage.

    Updated Jun 20, 2026
  • #750

    Don't discard data in case of an error

    Updated Jun 20, 2026
  • #749

    Disable graphql suggestions

    Updated Jun 17, 2026
  • #742

    OverlappingFieldsCanBeMergedRule stack-overflows on cyclic fragment spreads

    Updated May 20, 2026
  • #736

    Disable introspection

    Updated Mar 10, 2026
  • #728

    Release a new version

    Updated Sep 18, 2025
  • #714

    make a new release v0.8.2 to include PR that has been merged after the latest release v0.8.1

    Updated Sep 18, 2025

> Tags

Gographqlgraphql-gosubscriptions

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 29, 2026
Category后端框架
PricingOpen source

> Related tools

N
Node.js
基于 V8 的 JavaScript 运行时
D
Django
Python 高级 Web 框架
S
Spring Boot
Java 生态主流微服务框架