V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
find456789
V2EX  ›  问与答

网上几年前的帖子都在说很多国内外大公司在用 graphql,可是我怎么一个证据都没有找到,都是水军吗?

  •  
  •   find456789 · 2019-09-24 13:50:54 +08:00 · 1681 次点击
    这是一个创建于 1648 天前的主题,其中的信息可能已经有所发展或是发生改变。

    看到网上说 graphql 比 rest 好很多

    并且都说,要火, 国内外很多大公司在用

    可是我却没有找到证据

    graphql 真的好用?

    查询的性能那么大, 而且 要控制字段的权限,比 rest 更加复杂啊

    求指教

    9 条回复    2019-09-25 16:45:46 +08:00
    method
        1
    method  
       2019-09-24 13:59:12 +08:00   ❤️ 2
    不要用。老老实实做好前后端解耦和接口规范、文档建设。用 graphql 有时候就是为了晋升。
    coocier
        2
    coocier  
       2019-09-24 13:59:51 +08:00   ❤️ 1
    jhdxr
        3
    jhdxr  
       2019-09-24 14:01:18 +08:00   ❤️ 1
    GraphQL is used in production by hundreds of organizations of all sizes including Facebook, Credit Karma, GitHub, Intuit, PayPal, the New York Times and many more.

    摘自 https://foundation.graphql.org/


    p.s. 立场中立声明:以上回复不代表我个人喜欢 /讨厌 /支持 /反对 GraphQL
    heww
        4
    heww  
       2019-09-24 14:02:38 +08:00   ❤️ 1
    @method #1 说句心里话,这东西还是很好用的~
    doublleft
        5
    doublleft  
       2019-09-24 14:04:17 +08:00   ❤️ 1
    说句心里话,GraphQL 真的很好用,但是真的想用的话还是上 GRPC
    find456789
        6
    find456789  
    OP
       2019-09-24 14:23:10 +08:00
    @doublleft
    业务主要是 web、app, grpc 好像是客户端的哦,能用在 web 上吗
    doublleft
        7
    doublleft  
       2019-09-24 14:24:56 +08:00   ❤️ 1
    @find456789 #6 能,但是残,纯 web 业务没必要,微服务之间可以上,通过网关转 http
    StarkWhite
        8
    StarkWhite  
       2019-09-25 16:44:53 +08:00
    确实已经火了,不说国外,国内也有阿里等大厂在用
    https://www.v2ex.com/t/589138?p=1
    StarkWhite
        9
    StarkWhite  
       2019-09-25 16:45:46 +08:00
    性能问题用 dataloader,字段权限可以 resolver 里判断,方法总比问题多嘛
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2813 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 11:46 · PVG 19:46 · LAX 04:46 · JFK 07:46
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.