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

GraphQL

 GraphQL

Internal Lightning Talk @ Redgate, Cambridge, UK

Tugberk Ugurlu

September 05, 2017
Tweet

More Decks by Tugberk Ugurlu

Other Decks in Programming

Transcript

  1. GraphQL is a query language for your API, and a

    server-side runtime for executing queries by using a type system you define for your data. (http://graphql.org/learn/)
  2. WHAT PROBLEMS DOES IT ADDRESS? Strongly Typed Describe what’s possible

    with a type system Declarative Ask for what you need, get exactly that Compositional Get many resources in a single request
  3. CHARACTERISTICS Query has exactly the same shape as the result

    GraphQL operates on set of types in your schema
  4. CHARACTERISTICS GraphQL services can be written in any language Introspection

    system allows you to ask for information about the schema
  5. A FEW PROBLEMS Authentication and Authorization You are on your

    own! HTTP Caching Cause by having a POST request with single endpoint Unpredictable Execution Freedom has its cost!
  6. MORE LINKS • Home of GraphQL: http://graphql.org/ • Best Practices

    with GraphQL: http://graphql.org/learn/best-practices/ • Getting Started: http://graphql.org/graphql-js/ • Validation: http://graphql.org/learn/validation/ • Pagination: http://graphql.org/learn/pagination/