📘
Notes
  • Welcome
  • Domain Name System (DNS)
  • Developer Road Maps
  • App Security
  • Terminal Shortcuts/Commands
  • Technical Vocab
  • Kubernetes
  • Database Migrations
  • How to Write UML Diagrams
  • Linux
  • Testing in Software
  • Front-end / UI / UX
    • Redux
    • Notes on Design
    • HTML
    • CSS
    • React
  • Backend / Infrastructure
    • Terraform
    • Content Delivery Network (CDN)
    • Elasticsearch
    • npm
      • how to fix npm vulnerabilities
    • AWS Serverless Computing
    • Databases
      • Object Relational Mapper (ORM)
      • Database Migration
      • Relational Database Management System
    • TCP/IP
    • Web Servers
      • Go
      • HyperText Transfer Protocol (HTTP)
        • Request / Response
          • REST API
          • GraphQL / Apollo
        • Postman
    • Docker / Containers
    • Caches
      • Redis
    • MVC (Model-View-Controller)
  • General Career Advice
    • Software Engineering @Google
  • Technical Books
    • Designing Data-Intensive Systems
    • 30 Days of React
    • The Art of Game Design: A Book of Lenses
  • Data Structures / Algorithms
    • Sorting
    • Tries
  • Courses
    • Full Stack Open
    • iOS App Dev
Powered by GitBook
On this page
  1. Backend / Infrastructure
  2. Web Servers
  3. HyperText Transfer Protocol (HTTP)
  4. Request / Response

GraphQL / Apollo

GraphQL was developed by Facebook as an alternative to the standard REST API architectural style. It was designed to be faster and more flexible/efficient. GraphQL lets developers construct requests that can pull data from multiple data sources in a single API call.

API developers use GraphQL to create a schema to describe all the possible data that clients can query through that service.

A GraphQL schema is made up of object types, which define which kind of object you can request and what fields it has.

As queries come in, GraphQL validates the queries against the schema. GraphQL then executes the validated queries.

The API developer attaches each field in a schema to a function called a resolver. During execution, the resolver is called to produce the value.

PreviousREST APINextPostman

Last updated 1 year ago