GraphQL (Graph Query Language) is a language used to create a data schema and to retrieve/edit that data. It’s used to work with data relating to each other, built on top of a graph (e.g. books and authors and readers).
GraphQL Server defines schema and Client creates queries according to that schema. GraphQL Schema becomes a contract between the server and the client.
In that manner, GraphQL is an alternative to REST (that doesn’t handle graph data well).
GraphQL is not related to a particular technology (we can write code in any well-known language). As long as both server and client are written according to the GraphQL specs, it should be fine.
It’s useful to install this extension to VS Code.
- GraphQL Playground
- provides curl commands to use queries in CLI
- Star Wars GraphQL API Explorer (Apollo Studio)