GraphQL

804116bef2aa0a22789514d3b7a8f520?s=47 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.

804116bef2aa0a22789514d3b7a8f520?s=128

Dimitri

January 25, 2019
Tweet

Transcript

  1. 2.

    “ 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. 3.

    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. 14.
  4. 15.

    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
  5. 16.