SERGIO TOMASBack to portfolio

Language · Language

GraphQL

Ask for exactly the data you need.

01Overview

GraphQL is a query language and runtime for APIs that lets clients request exactly the data they need. I use it with Node.js when multiple front-ends consume the same domain with different needs.

02Key concepts

What anyone working with it needs to understand

  1. 01

    Schema & types

    SDL, object types, inputs, enums and the schema as a contract.

  2. 02

    Queries & mutations

    Reading and writing data with a single endpoint.

  3. 03

    Resolvers

    How fields are resolved and composed from multiple sources.

  4. 04

    N+1 & DataLoader

    Batching and caching to avoid performance traps.

  5. 05

    Subscriptions

    Real-time updates over WebSockets.

  6. 06

    Security

    Query depth limits, complexity analysis and authorization per field.

03In practice
Part of my Node.js toolkit (Express, NestJS, GraphQL) and covered in depth in my “Node.js – The Complete Guide” certification.