Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Graphql

178 views

Published on

GraphQL presentation from @rvkjs meetup, december 2016.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Graphql

  1. 1. GraphQL Arnar Þór Sveinsson @arnarths
  2. 2. • Data defined as a cyclic graph instead of endpoints. • Mutations exposed as part of schema • All data exposed through a single endpoint Beyond REST
  3. 3. Benefits • Fewer roundtrips to the server • UI components can describe their own data dependencies • Typesafe client/server contract
  4. 4. Features
  5. 5. • Apollo client • Works well with Redux • Available for React, Angular, iOS, Android and standalone client • Relay • Developed by Facebook • Lokka • Raw client Clients
  6. 6. • One entry point - /graphql • Single schema with all of our data • ClientAPI defines the schema and fetches the data VIA thrift from other services • Apollo client with Redux How is WOW using GraphQL
  7. 7. • Client side caching • Refetch prop • Loading prop • Force fetch attribute • Components define their own data • Becomes part of the Redux store we already have defined Apollo Client
  8. 8. • Apollo devtools • React devtools (when using Relay) • ESLint • GraphiQL • Auto complete my request plugin (wants) Development tools
  9. 9. • Pagination - create an interface for pagination • How to deal with authorization? • Error handling? • Partial responses? Best practices

×