GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data.

GraphQL is a syntax that describes how to ask for data, and is generally used to load data from a server to a client. GraphQL has three main characteristics:

Query ExampleQuery Result


{
  allFilms {
    films {
      title
    }
  }
}



{
  "data": {
    "allFilms": {
      "films": [
        {
          "title": "A New Hope"
        },
        {
          "title": "The Empire Strikes Back"
        },
        {
          "title": "Return of the Jedi"
        },
        ...



GraphQL supports various programming languages 

You can see the same code at https://graphql.org/code/ in various programming languages.