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

Embracing the Power of GraphQL

Embracing the Power of GraphQL

Tim Griesser

July 13, 2017
Tweet

More Decks by Tim Griesser

Other Decks in Programming

Transcript

  1. REST APIs can lead to a ton of custom complex

    logic on the front-end to handle results
  2. Performance issues due to network overhead & over/under fetching on

    the server to account for access patterns (half baked graphql)
  3. Types ID, String, Float, Int, Boolean List, Enum, ObjectTypes, InputObjectTypes

    Queries, Mutations, Fragments Unions, Interfaces (Directives)
  4. Performance issues, both due to network overhead & due to

    over/under fetching on the server to account for access patterns
  5. DATALOADER • Elegantly solves the n+1 Query problem • As

    the Graph executes, you “load" a resource, which adds that ID to a queue • That queue is then flushed at the end of the execution of that level of the tree
  6. 200 = valid formed query, any errors are specified as

    part of the response, incomplete payload