Upgrade to Pro — share decks privately, control downloads, hide ads and more …

GraphQL in a REST world

Jamie Barton
November 15, 2017
140

GraphQL in a REST world

In this talk I gave a short introduction into GraphQL.

Jamie Barton

November 15, 2017
Tweet

Transcript

  1. @notrab • React • Redux • Flow • NextJS •

    Styled components • Node • GraphQL
  2. @notrab • React • Redux • Flow • NextJS •

    Styled components • Node • GraphQL
  3. @notrab GraphQL • Query language for APIs • Built by

    Facebook (open sourced in 2015) • Declarative way of querying/fetching data • Works with any database • Typed spec • Support for Go, Ruby, JavaScript & more • Used by companies such as Ticketmaster, GitHub & KLM
  4. @notrab { "data": { "allProducts": [ { "id": "cj8rkz8dle9r40179cqxt598k", "name":

    "iPhone X", "amount": 0, "category": { "id": "cj8t5syc206p30199dbz7a5st", "name": "iPhone" } } ] } } Response
  5. @notrab { "data": { "allProducts": [ { "id": "cj8rkz8dle9r40179cqxt598k", "name":

    "iPhone X", "amount": 0, "category": { "id": "cj8t5syc206p30199dbz7a5st", "name": "iPhone" } } ] } } Query Response { allProducts { id name amount category { id name } } }