GraphQL

What is GraphQL

  1. Request (GraphQL document) > JSON Response

  2. Spesification

  3. Schema (Domain Spesific)

  4. Reference:

GraphQL is not

  1. A graph database query language

  2. Limited to Javascript  / NodeJS

  3. Limited to use with React/Relay/Web

GraphQL operations

  1. Query - Read

  2. Mutation - Write

  3. Subscription - Observe Event

Efficiency

  1. Overfetching - Response contained too much data

  2. Underfetching - Response did not contain enough data, make another network request

Network Request:

  • 1 MB SSD : 1 ms
  • Package US <> EU : 150ms

Let's do GraphQL

Made with Slides.com