hasura graphql 模式拼接概念

具体的使用可以参考下面一张图

有一个术语 graphql-bindings 参考项目:

使用的场景

  • 需要从多个数据源进行数据获取
  • 需要自定义的数据操作(数据校验)
  • api gateway (参考上图)

参考资料

https://www.prisma.io/blog/reusing-and-composing-graphql-apis-with-graphql-bindings-80a4aa37cff5/
https://github.com/graphql-binding/graphql-binding
https://github.com/hasura/generate-graphql-bindings
https://docs.hasura.io/1.0/graphql/manual/schema/schema-stitching.html

posted on 2018-07-25 16:50  荣锋亮  阅读(508)  评论(0编辑  收藏  举报

导航