知识卡片
GraphQL选择需要的数据
GraphQL通过模式和查询语言让客户端指定所需字段,可在已有服务之上组织统一访问。它有助于避免多余字段和往返,但不会消除后端负载、权限与跨域语义问题;模式联邦也不应自动演变为一个庞大企业通用模型。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Services and API Management · 查看原书依据
A typical component for providing a uniform API experience is a GraphQL service. GraphQL works as an additional layer over existing APIs. It uses a query language for selecting exactly the fields you want to have from multiple APIs. GraphQL can be a good solution for real-time extraction of vast amounts of data from different systems.
参考来源
- 位置:《Data Management at Scale》第05章《Services and API Management》(来源项目 a19c7933-4eda-4176-aebd-30fe7e1ad292,源文件:extracted/Data Management at Scale/_epub-src/OEBPS/ch05.html)
- 结论依据:原文对selecting exactly the fields的解释、约束及上下文支持本卡;内容为中文归纳,不把架构建议当作所有组织的必然规律。
- 原始内容:A typical component for providing a uniform API experience is a GraphQL service. GraphQL works as an additional layer over existing APIs. It uses a query language for selecting exactly the fields you want to have from multiple APIs. GraphQL can be a good solution for real-time extraction of vast amounts of data from different systems.