IT Glossary
What is GraphQL (the query language for APIs)?
A query language for APIs: the client names the fields, and the server returns exactly that shape.
- 6
- sections
- 6
- questions answered
GraphQL is a query language for APIs, plus the rules by which a server executes the request: the client sends a text that names exactly the fields it wants, and the server replies in JSON with the same shape, usually at a single address (/graphql). The specification defines three kinds of operation: a query reads data without changing it, a mutation writes data and then reads it back, and a subscription is a long-lived request that receives data on every event.
GraphQL was created at Facebook in 2012, and work on the open standard began in 2015. The specification is published at spec.graphql.org under the OWFa 1.0 licence; the current edition is called September 2026 and was released on 12 November 2026, and the GraphQL Foundation, formed in 2019, is hosted by the Linux Foundation. The trade for that flexibility: the server must limit query depth and cost, and HTTP caching is not automatic when requests go through POST.
Why it matters for your business
Visibly faster mobile applications
One request carrying only the needed fields replaces several round trips, which is felt most on the poor connections real customers use.
New screens without server changes
Front-end teams compose the data they need from the existing schema, removing the need for a new endpoint for each extra field.
One API for every consumer
Web, mobile and partner integrations query the same schema for different shapes of data, instead of each requiring bespoke endpoints.
How it works: schema, query, resolvers
The server publishes a schema written in SDL (Schema Definition Language): the list of data types, the fields of each and the links between them. The schema is the contract between client and server: a request for a field that does not exist is rejected before it runs. For each request the server parses it, validates it against the schema and calls one resolver per requested field; a resolver is the function that fetches the value from a database or another service.
Example: the query query { client(id: 42) { nume sold comenzi(ultimele: 3) { numar total } } } asks for the name, balance and last three orders of customer 42. The reply is a JSON object with the key data, holding exactly the same fields in the same structure and nothing else. Introspection lets tools read the schema straight from the server; on a public API it is restricted or switched off.
Queries, mutations and subscriptions
The specification defines three kinds of operation. A query is a read that does not change data. A mutation is a write followed by a read: the specification's example marks a story as liked and returns the new like count in the same request. A subscription is a long-lived request that receives data on every event, such as a new message in a conversation.
The specification describes the language and its execution, not the transport. Queries and mutations usually travel over HTTP and subscriptions usually over WebSocket; both are implementation conventions, not rules of the language.
Want an estimate for your project?
Message us on WhatsApp. We reply the same working day, and the first 30-minute call is free.
GraphQL vs REST
REST is an architectural style with many addresses, one per resource, and the server decides the shape of the response. GraphQL usually has a single address, and the client decides the shape of the response. That avoids two REST problems: over-fetching, where you receive more fields than you display, and under-fetching, where one screen needs several successive calls.
Over HTTP the rules differ. According to graphql.org, a server must accept POST for queries and mutations and may accept GET for queries only, never for mutations. CDN-level caching therefore needs GET or persisted queries; it does not come for free as it does with a REST resource. GraphQL can sit on top of existing REST services, and the two often coexist in one system.
Who maintains the standard
The specification is published at spec.graphql.org. Editions: July 2015 (the first), October 2015, April 2016, October 2016, June 2018, October 2021, September 2025 and, most recent, September 2026, released on 12 November 2026. Since 2019 the work has been done in the GraphQL Specification Project under the Joint Development Foundation, and the licence is OWFa 1.0 (Open Web Foundation Agreement). The GraphQL Foundation, formed in 2019 as well, is hosted by the Linux Foundation. The rules for transport over HTTP are in a separate specification, GraphQL-over-HTTP, still a draft.
Checked on spec.graphql.org on 18 November 2026.
Frequently asked questions
What does GraphQL mean?
GraphQL is a query language for APIs. The name joins graph, the connected structure of the data, with query. The client names the fields it needs, and the server replies in JSON with exactly the same shape, usually through a single address and without any surplus fields.
Does GraphQL replace REST?
Not as a general rule: REST remains the natural choice for simple public APIs and caches easily, while GraphQL suits products with many screens and deeply related data. Many systems run both in parallel, in different roles, and GraphQL can even call existing REST services behind its resolvers.
Is GraphQL a database?
No, GraphQL is an API layer, not a place where data is stored. Data comes from any database or service through resolvers. The response is JSON, but the language itself is not JSON: it is a query text that describes which fields are requested.
What is the difference between a query, a mutation and a subscription?
A query reads data without changing it. A mutation writes data and then reads it back in the same request. A subscription is a long-lived request that receives data on every event, usually over WebSocket. All three are defined in the specification, and each has its own role in the schema.
Is GraphQL harder to secure than a conventional API?
It needs specific measures: because the client composes its own queries, the server must limit their depth and complexity, otherwise one clever request can ask for a mountain of data. Add per-field permissions and introspection that is disabled or restricted on a public API. These are standard practices, but they must be applied deliberately.
Where do I find the official GraphQL specification?
The specification is published at spec.graphql.org, and the current edition is September 2026, released on 12 November 2026. The standard is maintained in the GraphQL Specification Project, and the GraphQL Foundation, hosted by the Linux Foundation, coordinates the community. Introductory documentation and guides are on graphql.org.
Let’s talk about your project
Book a free 30-minute call or send us an email. We reply the same working day.
office@northdan.com · +40 750 252 851