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

An Introduction to GraphQL

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers. →

An Introduction to GraphQL

The demos can be found here: https://github.com/bmullan91/graphql-demos

Avatar for Brian Mullan

Brian Mullan

June 28, 2017

Other Decks in Programming

Transcript

  1. Agenda • What is GraphQL • Its back story •

    The query language & examples • Live coding demos ! • Key principles
  2. What It's Not... • A database or a storage engine

    • A query language for graph databases • A React or JS specific thing
  3. GraphQL is a query language for APIs and a run8me

    for fulfilling those queries with your exis8ng data. GraphQL provides a complete and understandable descrip8on of the data in your API. — graphql.org
  4. The Back Story • Circa 2011 the mobile revolu4on was

    in full swing !" • HTML5 wrapper! Poor UX # • REST APIs $ • Under fetching: Mul4ple round trips to the server • Over fetching: Large JSON payloads • Versions, custom endpoints, coupling ...etc
  5. GraphQL's Timeline • ! 2012 • " 2015 @ React

    Conf • ⏩ 2017 20+ languages • $ Used by GitHub, TwiAer, Shopify, Khan Academy etc
  6. Response { me: { friends: [ { name: 'John' }

    { name: 'Dick' } { name: 'Harry' } ] } }