maxdraco

GraphQL

A query language for APIs in which the client asks for exactly the data it wants in one request.

Protocol Programming and AI

GraphQL is a way of asking an API for data. Instead of a separate address for each kind of thing, there is one, and each request is a query naming exactly the fields it wants; the answer comes back as JSON in the same shape. It was created at Facebook and is now an open specification. A GraphQL reply can report success overall while carrying a list of errors inside it, so a program has to read that list to know whether it really got what it asked for.

See also

  • API A defined way for one program to ask another for data or actions.
  • JSON A simple text format for structured data that people can read and almost every programming language can handle.
  • HTTP status codes (200, 401, 403, 404) The three-digit number a web server sends back to say how a request went.
  • AI Artificial intelligence: software that performs tasks usually thought to need human judgement.
  • Endpoint (route) One specific address on a web service that a program can call to do one job.
  • Environment variable A named setting a running program inherits from whatever started it.
  • Exit code The number a program hands back when it finishes: zero for success, anything else for failure.
  • Git Free software that records every change to a set of files, used to keep the history of most software projects.

Sources

  1. GraphQL specificationGraphQL Foundationofficial healthy, checked 2026-11-15 archived copy
  2. GraphQLWikipedia healthy, checked 2026-11-15 archived copy