apisIntermediate
GR
GraphQL
Created by: Lee Byron, Nick Schrock, Dan Schafer (Meta) (2015)
A query language for APIs and a runtime for executing queries with your existing data.
#API#Schema#Query Language
Technical Specifications & Execution Parameters
PARADIGMTyped Query Language & Runtime
What is GraphQL?
Created by Meta in 2012 and open-sourced in 2015, GraphQL enables client applications to request exactly the fields they need, preventing both over-fetching and under-fetching.
Common Real-World Use Cases
- Mobile apps with restricted bandwidth
- Composite dashboards aggregating multiple microservices
Core Architectural Features
Strict Schema Definition Language (SDL)
Single HTTP POST endpoint (/graphql)
Zero over-fetching: client shapes output response
Syntactic & Architectural Examples
GraphQL Query
graphql
query GetLanguage {
language(slug: "python") {
name
latestVersion
creatorOrFoundation
}
}Explanation: Client asks for only 3 fields, skipping all other metadata.
Key Strengths
- +Clients receive only what is rendered
- +Single network round-trip retrieves nested entities
- +Strong contract between frontend and backend
Limitations & Constraints
- -Complex HTTP-level CDN caching
- -N+1 database query issues without DataLoader
Research Standards & Sources
Last researched: 2026-09-04
Verified primary and official documentation sources:
Standards SpecificationGraphQL Specification