Jun
20
GraphQL(Graph + Query Language)
tommyhu , 22:46 , 大前端 » Node.js , Comments(0) , Trackbacks(0) , Reads(775) , Via Original
Large | Medium | Small


https://graphql.cn/
使用GraphQL的理由
数据冗余和请求冗余 (overfetching & underfetching)
灵活而强类型的schema
接口校验 (validation)
接口变动,维护与文档
开发效率
问题
迁移成本
牺牲Performance
缺乏动态类型
简单问题复杂化
缓存能解决很多问题
项目
https://github.com/graphql/graphql-js/
https://github.com/graphql/express-graphql
https://github.com/apollographql/apollo-server
Quotation
GraphQL 既是一种用于 API 的查询语言也是一个满足你数据查询的运行时。 GraphQL 对你的 API 中的数据提供了一套易于理解的完整描述,使得客户端能够准确地获得它需要的数据,而且没有任何冗余,也让 API 更容易地随着时间推移而演进,还能用于构建强大的开发者工具。
使用GraphQL的理由
Quotation
数据冗余和请求冗余 (overfetching & underfetching)
灵活而强类型的schema
接口校验 (validation)
接口变动,维护与文档
开发效率
问题
Quotation
迁移成本
牺牲Performance
缺乏动态类型
简单问题复杂化
缓存能解决很多问题
项目
https://github.com/graphql/graphql-js/
https://github.com/graphql/express-graphql
https://github.com/apollographql/apollo-server