GraphQL - goatandsheep/goatandsheep.github.com GitHub Wiki

Another way to connect to your server that allows synchronization and is great for changing APIs. The beauty is that the back end manages the raw data and sends event updates when there are changes while the front end organizes the data. This is great because front end data requirements often change faster than the back end can handle them.

Concepts

Actions

3 types of actions:

  • Mutations: create, delete, update
  • Queries: a good initial load of data
  • Subscriptions: actions triggered by an event, best used for keeping data up to date on concurrent mutations

Resolvers

Retrievers of the data that relate and filter

Most of it is found on the

Server

  1. Setup your schema

Client

Most commonly used client is Apollo