V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
The Go Programming Language
http://golang.org/
Go Playground
Go Projects
Revel Web Framework
everyx

Golang GraphQL 库求推荐

  •  
  •   everyx ·
    everyx · Jul 15, 2020 · 2867 views
    This topic created in 2125 days ago, the information mentioned may be changed or developed.

    搜了一下 GitHub,看了几个库

    1. graphql-go/graphql
    2. 99designs/gqlgen:
    3. graph-gophers/graphql-go

    大家有用过的,可以交流一下如何选择的吗?谢谢啦

    4 replies    2020-07-16 09:38:17 +08:00
    kenzi
        1
    kenzi  
       Jul 15, 2020   ❤️ 1
    从 1 换到了 2,主要是为了 schema first,不过 2 需要 generate, 比较麻烦
    wfhtqp
        2
    wfhtqp  
       Jul 15, 2020   ❤️ 1
    gqlgen 目前用着还可以
    janxin
        3
    janxin  
       Jul 15, 2020   ❤️ 1
    还有一个 https://github.com/samsarahq/thunder

    一个参考可以看 appleboy 做的 Bench

    https://github.com/appleboy/golang-graphql-benchmark

    推荐 gqlgen 和 thunder
    everyx
        4
    everyx  
    OP
       Jul 16, 2020 via Android
    @kenzi
    @wfhtqp
    @janxin 谢谢,我也倾向于 2
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2963 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 06:29 · PVG 14:29 · LAX 23:29 · JFK 02:29
    ♥ Do have faith in what you're doing.