TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Apollo Client 2.5 for GraphQL Announced

73 点作者 saranshk大约 6 年前

2 条评论

oaxacaoaxaca大约 6 年前
I have mixed feelings about Apollo and GraphQL in general.<p>To go from mature backend frameworks with autogenerated REST APIs to manually writing a lot of boilerplate code just to get a _basic_ GraphQL API running is frustrating. Part of the blame goes to the marketing of GraphQL. For example, the tagline on graphql.org is &quot;Describe your data | Ask for what you want | Get predictable results&quot;. That&#x27;s all well and good, but it leaves out the large majority of the work you have to do. This describes the schema, the query, and the result; but what about all the resolver code you have to write? That&#x27;s the painful part of the whole process, especially when you get to the point of writing field-level resolvers and integrating child objects (DataLoader, etc.).<p>And then on the frontend, Apollo is preaching for us to write client-side queries AND client-side resolvers to fetch data that&#x27;s _already in the cache_. All of this just to read, for example, a single primitive value? This is just too much.
评论 #19260203 未加载
评论 #19259803 未加载
评论 #19259747 未加载
评论 #19259846 未加载
评论 #19259857 未加载
评论 #19263742 未加载
评论 #19260077 未加载
marcrosoft大约 6 年前
Why GraphQL over standard REST&#x2F;JSON for most applications? I&#x27;m still not convinced.
评论 #19259779 未加载
评论 #19259366 未加载
评论 #19259517 未加载
评论 #19259399 未加载
评论 #19259319 未加载
评论 #19259804 未加载
评论 #19259858 未加载
评论 #19261736 未加载
评论 #19259521 未加载