Show Menu
Cheatography

ApolloGraphQL Cheat Sheet (DRAFT) by

Some usefull reminders about graphql with apollo

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Query

A query is a method called from the frontend that will retrieve some results from the backend.
A query will never update the data. Have a look at mutation for that.

Mutation

A mutation is like a query except that it is used for update and save mechan­isms.

Other partic­ula­rity: It is interp­reted in queue not in paralells like query.
 

Type extend

type Cat extends Animal {
  name: String
  meows: Boolean
  purrs: Boolean
  scratches: Boolean
}