Overview
GraphQL is an open-source query language for APIs, together with a server-side runtime for answering those queries. graphql.org is its official home, holding the documentation, the specification, a learning guide and a directory of libraries and tools. It is a standard to read and build on rather than an app you run.
The central idea is that the client asks for exactly the fields it needs and receives a response in the same shape as the query. The API is described by a strongly typed schema, so tools can validate a query before it runs and editors can offer autocompletion. Related data can be fetched in one request instead of several calls, and an API can grow by adding fields and marking old ones as deprecated rather than releasing new versions.
GraphQL was developed at Facebook, which has used it in its mobile apps since 2012, and the specification was opened up in 2015. Since 2018 it has been looked after by the GraphQL Foundation, a neutral body hosted by the Linux Foundation. It is not tied to any database or storage engine, and the site's own FAQ says it is an alternative to REST, not necessarily a replacement.
Categories
Features
- Clients request exactly the fields they need
- Strongly typed schema describing the whole API
- Introspection, so tools can ask the schema what is available
- Related resources fetched in a single request
- Schema evolution through added fields and deprecation instead of versions
- Published specification at spec.graphql.org
- Server and client libraries in many programming languages
- GraphiQL, an open-source in-browser IDE for exploring an API
Privacy
See the official privacy policy. GraphQL is a specification and reference site, with nothing to sign up for.
Pros & Cons
Pros
- Open specification governed by a neutral foundation
- Avoids fetching too much or too little data
- Schema works as built-in documentation
- Works with existing code and any data source
- Large ecosystem of libraries and tools
Cons
- It is a specification, so you still have to choose and run an implementation
- Naive resolvers can cause repeated database loads without batching
- Needs its own protections such as query depth limits and timeouts
- Offline support and caching depend on the client library you pick
Community Reviews (0)
No written reviews yet — be the first to rate this tool.
Similar Tools
-
GraphQL Tools · Apollo GraphQL
Builds, connects, and manages GraphQL APIs.
Freemium No Signup Web -
Explores and tests GraphQL APIs interactively in the browser.
Open Source No Signup Web -
Generates a GraphQL API automatically from a database.
Freemium Web