glossary2 min read

What is GraphQL?

GraphQL lets clients request exactly the data they need from APIs.

GraphQL is a query language for APIs created by Facebook. Instead of multiple REST endpoints returning fixed data shapes, GraphQL provides a single endpoint where clients specify exactly what fields they need. This eliminates over-fetching (getting fields you do not need) and under-fetching (needing multiple requests to get all data). GraphQL uses a strongly-typed schema that serves as both documentation and contract between frontend and backend.