V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
The Go Programming Language
http://golang.org/
Go Playground
Go Projects
Revel Web Framework
everyx
V2EX  ›  Go 编程语言

Golang GraphQL 库求推荐

  •  
  •   everyx ·
    everyx · 2020-07-15 10:54:06 +08:00 · 2155 次点击
    这是一个创建于 1352 天前的主题,其中的信息可能已经有所发展或是发生改变。

    搜了一下 GitHub,看了几个库

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

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

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

    一个参考可以看 appleboy 做的 Bench

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

    推荐 gqlgen 和 thunder
    everyx
        4
    everyx  
    OP
       2020-07-16 09:38:17 +08:00 via Android
    @kenzi
    @wfhtqp
    @janxin 谢谢,我也倾向于 2
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1425 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 17:28 · PVG 01:28 · LAX 10:28 · JFK 13:28
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.