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

JavaScriptures 4.1 - Relay

JavaScriptures 4.1 - Relay

Artsy Open Source

April 11, 2018

More Decks by Artsy Open Source

Other Decks in Programming


  1. Description • Provide application code with an interface abstracted away

    from network/API details • Handle authentication in a single place • Handle caching in a single place • Handle errors in a single place Responsibilities of an API client
  2. Declare the data your components need with GraphQL, Relay determines

    how and when to fetch your data. Declarative
  3. GraphQL is written next to the views that rely on

    them. Relay aggregates queries into efficient network requests. Colocation