TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Apollo Client 2.5 for GraphQL Announced

73 pointsby saranshkabout 6 years ago

2 comments

oaxacaoaxacaabout 6 years ago
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 未加载
marcrosoftabout 6 years ago
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 未加载