$30 off During Our Annual Pro Sale. View Details »


January 25, 2019


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


January 25, 2019

More Decks by Dimitri

Other Decks in Programming


  1. Tech talk

  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?
  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
  4. Query language

  5. Query language +

  6. Specification GraphQL Schema Types Resolvers Mutations Query Scalars Inputs

  7. What is a type?

  8. What is a query type?

  9. What is a mutation type?

  10. What is an input type?

  11. What are resolvers?

  12. What are resolvers?

  13. Live coding

  14. Silver bullet? - N + 1 problem - Caching -

    File uploads - Security
  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
  16. The End