GraphQL is a query language that allows data from any system to be queried as if it were a Graph of data.
Similar to REST, GraphQL allows for data to be fetched and a JSON response to be returned, but unlike REST, GraphQL allows for data to be queried as if it were stored in a Graph. Additionally, a single GraphQL request can return multiple resources, including related resources, and is built on a strong type system which has led to powerful tooling, such as powerful introspection and tools such as the GraphiQL IDE.
In this workshop we’ll go over:
- Overview GraphQL, what problems it solves, etc.
- Comparisons with other WordPress API’s (REST, XML-RPC)
- How to use GraphQL to consume data from WordPress
- Client-side tools for managing data consumed by GraphQL queries, managing refetching of data, and other issues that are difficult to accomplish with decoupled applications.