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.

Eight Years of GraphQL

94 pointsby fagnerbrack10 months ago

13 comments

georgyo10 months ago
Wait, people are using graphql for private, not exposed, backend apis?<p>Who would torture themselves like that?<p>Isn&#x27;t the whole point that your frontend can make the exact queries it needs and load the exact data it needs?<p>Namely, last I checked, client libraries for working with graphql are only good with JS. I tried working with graphql a few years ago in python and the only two client libraries absolutely sucked. Server libraries were great, but python clients sucked, badly. I ended up writing bare requests with a hardcoded heredoc for the query and endless square brackets to get the fields for the little data I needed.<p>Maybe the situation improved dramatically in the last three years, but I can&#x27;t imagine so dramatically.<p>I wouldn&#x27;t pick graphql as a private backend API in a million years. Well, maybe if ever single service was written in nodejs with no possibility of using other languages.
评论 #40983503 未加载
评论 #40983831 未加载
评论 #40983609 未加载
评论 #40983182 未加载
评论 #40984891 未加载
评论 #40983148 未加载
评论 #40983447 未加载
评论 #40983243 未加载
评论 #40984099 未加载
评论 #40983163 未加载
评论 #40983399 未加载
评论 #40983968 未加载
评论 #40983434 未加载
评论 #40983259 未加载
评论 #40983150 未加载
评论 #40983236 未加载
bcherny10 months ago
A lot of people in this thread are criticizing GraphQL.<p>The reality is that GraphQL is a great tool for one job: building APIs that scale across thousands of engineers, billions of users, and many megawatts of machines. This is what we use GraphQL for at Meta.<p>To make it work well, it takes dedicated teams building infrastructure that makes the DevX great. It takes many years to build this out across various backends, clients, and internal tools. We have open sourced some of this infra — the GraphQL spec, Relay, GraphiQL, etc.<p>But there are many tools we built that we have not open sourced yet, largely because they’re tightly coupled to our internal ORMs, runtimes, error handling, authentication and security systems, and so on. I wish we open sourced more of our GraphQL stack, so more people could experience the awesome DevX we have internally.<p>At the same time, GraphQL is a tool. No tool can be used all the time for everything. Meta’s 3rd party APIs still use REST for this reason; some internal services use Thrift; etc.<p>It’s up to you to evaluate the tools available to build the way that makes sense for your business. Because some parts are available off the shelf, but others often need to be built in house, it is up to you to understand that cost and evaluate whether it is worth it for your use cases.<p>My hope is that as time goes on, more dev tools startups come in the fill the gap in tooling around client libraries, auth, security, and so on to make GraphQL a good choice at smaller scales, too. The DevX is that good when you get it right.
评论 #40983858 未加载
loveparade10 months ago
Eight Years of GraphQL, and I have yet to find a single use case for it in my projects. I&#x27;ve had to interact with external GraphQL APIs a few times and each time it has been a terribly painful experience. Funnily enough, for the few queries where GraphQL would&#x27;ve actually been useful to get some deeply nested data structure, it was usually impossible to use it because the &quot;query is too big&#x2F;deep&quot; or it had cycles
评论 #40983257 未加载
vlugovsky10 months ago
One of the useful things I learned from a professor at my university is that every technology is good enough for its own use case. I still don&#x27;t understand why certain engineers don&#x27;t get this and go from &quot;XYZ is awesome, I use it everywhere&quot; to &quot;I&#x27;m over XYZ.&quot;<p>Just like the title of the article suggests, GraphQL is great, but ONLY in the right context.
djcollier10 months ago
I have yet to find an alternative to the GraphQL protocol that has the following requirements:<p>- Good support for HTTP 1.1<p>- Provides typesafe contracts for queries and mutations<p>- Strong support for most common UI clients (JS&#x2F;React Native&#x2F;SwiftUI)<p>- Backend can be written in a language that isn&#x27;t JavaScript&#x2F;TypeScript<p>- Large developer community<p>Closest thing I&#x27;ve found is defining your schema using OpenAPI spec, and using tools to generate code from that source for the client and server, but this is a much worse DX than the process of defining GraphQL schemas.
chx10 months ago
I never understood the point. Really don&#x27;t. GraphQL does not provide any built-in mechanisms for filtering, sorting, pagination or other arbitrary transformations of the response. If you are already built those then might as well just include the data necessary and use a REST API.
评论 #40983643 未加载
评论 #40983873 未加载
jensneuse10 months ago
Disclaimer, I&#x27;m one of the authors of an open source project to implement GraphQL Federation (<a href="https:&#x2F;&#x2F;github.com&#x2F;wundergraph&#x2F;cosmo">https:&#x2F;&#x2F;github.com&#x2F;wundergraph&#x2F;cosmo</a>).<p>GraphQL, but more specifically GraphQL Federation solves an organisational problem. With Federation, teams can collaborate on building an API together with a Schema Registry and Composition Checks across all Subgraphs (Services), which is a unique enabler in the market.<p>We&#x27;ve got a lot of customers in the enterprise segment and it&#x27;s growing rapidly to the point where I&#x27;d say it&#x27;s becoming an enterprise standard.
lukevp10 months ago
The breaking changes part from the original article was clear to me. The author was saying that if you control the API and the client, it’s often quicker to release changes that are not backwards compatible as long as you can coordinate the release of the two. Then there’s no need to version at all. Sounds like this is harder with graphql than REST.
评论 #40984512 未加载
评论 #40983252 未加载
markhalonen10 months ago
I can say with 100% confidence that GraphQL via Postgraphile &amp; TypeScript is a stellar tech stack for web applications beyond &quot;hello world&quot;.<p>If you are building on Postgraphile and raising from angels, dm me.
robbyiq99910 months ago
GrahpQL was something that came up heavily in Front-End job ads and maybe even mentioned during my experience interviewing around 2017-2020 I was once even turned down for not having enough &quot;GraphQL Experience&quot; - Whatever that was. This was during a particularly painful 6 month rut for me - job search wise. It&#x27;s absolutely infuriating that the tide has now changed. GraphQL doesn&#x27;t matter. Did it ever? What was the point?
评论 #40983663 未加载
评论 #40983495 未加载
troupo10 months ago
I think that instead of addressing and correcting the original post the author validated and confirmed everything that was said in that original post.
评论 #40983402 未加载
评论 #40983345 未加载
评论 #40983386 未加载
est10 months ago
GraphQL is painful. I am thinking some SQL but with more access control would be better.
评论 #40983726 未加载
elmigranto10 months ago
So if most of the issues with GraphQL are the same as with the other approach, what is the point of GraphQL that justifies all the complexity?
评论 #40984852 未加载