GraphQL introduction at the REST-aurant

Click for: original source

Gregor intro into GraphQL. The article is accompanied with video presentation. If you ever wondered what GraphQL can do for you and you know a bit of JavaScript, this is an excellent post explaining basic concepts of GraphQL.

He explains basic concepts on the example of existing RESTful API for imaginary restaurant with 2 resources and concepts like:

  • Under and over fetching
  • GraphQL specification
  • How GraphQL API is built around a schema
  • How schema serves as contract between client and server
  • Persisted queries
  • Mutations
  • GraphQL subscriptions

Persisted queries are query strings stored with a unique ID in a key/value store. They are not part of the GraphQL specification but a common implementation detail. Good read!

[Read More]

Tags restful apis nosql