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.

GraphQL at the REST-Aurant: A Tasty Introduction to GraphQL

9 pointsby ericelliottover 7 years ago

2 comments

cdevsover 7 years ago
Love the artwork and the work your putting into this. To be honest I'm in the middle of a graphql debate right now because our ad-hoc burger/salad endpoint said are how our API product are currently sold. Much like Burger King we don't grab cheese from a burger and put it on fries for you. This loose system does have its place but so do showing the customer a direct endpoint for burger and salad and letting them know if they want two trips they will be charged for burger and salad.
评论 #16296007 未加载
Shootheover 7 years ago
&gt; A GraphQL API is usually just another REST endpoint, e.g. POST &#x2F;graphql<p>I would call it an HTTP endpoint, not necessarily REST endpoint. GraphQL reminds me SOAP in this regard (one URL that you POST your request to) but GraphQL is more structured&#x2F;constrained (just a limited set of requests, queries, mutations, etc.).