GraphQL

Disclaimer: The GraphQL implementation is currently a very basic implementation.

Here's a quick example:

$query = <<<QUERY
  {
    products (first: 3) {
      edges {
        node {
          id
          title
        }
      }
    }
  }
QUERY;

$response = $shopify->graphQL()->post('', ['query' => $query]);

$data = $response->json();

We are working on improving this implementation.

Last updated