> For the complete documentation index, see [llms.txt](https://pactode.gitbook.io/laravel-shopify/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pactode.gitbook.io/laravel-shopify/usage/making-requests/graphql.md).

# GraphQL

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

Here's a quick example:

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

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

$data = $response->json();
```

{% hint style="info" %}
We are working on improving this implementation.
{% endhint %}
