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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

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

9 点作者 ericelliott超过 7 年前

2 条评论

cdevs超过 7 年前
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 未加载
Shoothe超过 7 年前
&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.).