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

GraphQL

Dimitri
January 25, 2019

 GraphQL

A simple introduction to what exactly GraphQL is, how you create your own GraphQL API's, and how it compares to REST API's.

Dimitri

January 25, 2019
Tweet

More Decks by Dimitri

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. GraphQL isn't tied to any specific database or storage engine and is instead backed by your existing code and data. ” – Taken from Introduction to GraphQL What is GraphQL?
  2. What about REST? REST GraphQL Multiple endpoints Single endpoint Fixed

    response structure(s) Fetch what you need No specification Query language Separate documentation Documented schema HTTP Protocol-agnostic
  3. Resources - Specification: https://graphql.org/ - Apollo GraphQL platform: https://www.apollographql.com/ -

    Java implementatie: https://www.graphql-java.com/ - Spring boot starter: https://www.graphql-java-kickstart.com/spring-boot/ - My blogpost: https://blog.optis.be/exploring-graphql-3de51e39d707 - Source code: https://github.com/optis/tech-talk-graphql