Querying Data with GraphQL

The data for the GraphQL side of this workshop is from https://graphqlzero.almansi.me/api

More information about this here: https://graphqlzero.almansi.me

You can paste in the various queries into the playground to see the shape of the data.

There’s several pieces of data needed for the workshop.

Here’s the queries to use throughout the workshop:

Posts

query Posts($options: PageQueryOptions) {
  posts(options: $options) {
    data {
      id
      title
      body
      user {
        id
        name
      }
    }
    meta {
      totalCount
    }
  }
}

Posts query variables