๐ŸŽ New User? Get 20% off your first purchase with code NEWUSER20 ยท โšก Instant download ยท ๐Ÿ”’ Secure checkout Register Now โ†’
Menu

Categories

Web Development Intermediate

What is GraphQL?

A query language for APIs that lets clients request exactly the data they need, reducing over-fetching and under-fetching.

GraphQL, developed by Facebook, provides a single endpoint where clients specify their data requirements in queries. Unlike REST (multiple endpoints, fixed responses), GraphQL returns exactly what is requested โ€” no more, no less.

Key concepts include schemas (type definitions), queries (read data), mutations (write data), and subscriptions (real-time updates). Tools include Apollo (client/server), Relay, and GraphiQL (interactive explorer). Trade-offs include complexity and caching challenges.

Related Terms

Service Worker
A JavaScript file that runs in the background, enabling offline support, push notifications, and background sync for web apps.
HATEOAS
Hypermedia As The Engine Of Application State โ€” a REST constraint where API responses include links to related actions and resources.
Server-Sent Events
A server push technology that enables a server to send real-time updates to a browser over a single HTTP connection.
JSON Schema
A vocabulary for validating the structure and content of JSON data, ensuring API requests and responses conform to expected formats.
Structured Data (Schema.org)
A standardized vocabulary for marking up web content so search engines can understand and display it as rich results.
SPA (Single Page Application)
A web application that loads a single HTML page and dynamically updates content without full page reloads.
View All Web Development Terms โ†’