← GraphQL learning pathGraphQL · Module 1 of 10
Why GraphQL?
GraphQL lets clients ask for exactly the data they need in one request.
📖 Key ideas
- GraphQL is a query language for APIs, created by Facebook (2015).
- One endpoint (/graphql) serves all queries.
- Clients choose fields, avoiding over-fetching and under-fetching.
- A typed schema describes what data is available.
- Used by GitHub, Shopify and many mobile apps.
💡 Real-life example: GraphQL is a buffet where you fill your plate with exactly what you want, instead of a fixed thali.
GraphQLQuery language for APIs
Over-fetchingGetting more data than needed
Under-fetchingNeeding several calls to get enough data
SchemaTyped description of the API