Web Development
What is GraphQL?
A query language for APIs that lets clients request exactly the data they need.
Definition
GraphQL is a query language and runtime for APIs developed by Meta (Facebook). Unlike REST, where the server defines fixed endpoints, GraphQL lets clients specify exactly which fields they want in a single request. This eliminates over-fetching and under-fetching. GraphQL uses a strongly typed schema, supports real-time subscriptions, and enables introspection — making APIs self-documenting.