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

GraphQL - how we use it

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest. →
Avatar for Yehor Kisilov Yehor Kisilov
August 11, 2021
41

GraphQL - how we use it

Brief talk about GraphQL technology, how we use it at BetterMe and our plans.

Avatar for Yehor Kisilov

Yehor Kisilov

August 11, 2021

Transcript

  1. Origin • Introduced by Facebook in 2012, public release in

    2015 • GraphQL Foundation in 2018, hosted by Linux Foundation
  2. Pros Strongly typed • De fi ne the data structure

    and the information that can be consumed • De fi nitions are written down in a Schema
  3. Pros Introspection • Fetch schema using HTTP client • Valid

    queries and data models on a spot • Documentation
  4. Backend. How it works Technologies • Go • GQLGen for

    GraphQL layer generation • Neo4J graph database platform
  5. Backend. How it works Performance and security • Batch data

    loading • Cyclomatic query complexity check • Data validation • Error handling
  6. Client side. How it works • Feature development starts with

    schema • Documentation • Code generation for requests • Error handling
  7. Client side. How it works Documentation • Stored within schema

    • Up-to-date according to current schema
  8. Client side. How it works Code generation for requests •

    Inspired by graphql-code-generator@github Schem a + Operations ➡
  9. Client side. How it works Error handling • Multiple errors

    in response • Custom validation and status codes • Handle each error individually