Laravel Shopify
  • 🛍️Laravel Shopify
  • Getting Started
    • 👋Installation
  • Usage
    • Prerequisites
    • Intializing the client
    • Making Requests
      • Pagination
      • GraphQL
    • Custom Requests
    • Custom Error Handling
    • Available Methods
      • Supported Method
    • Webhooks
Powered by GitBook
On this page
  1. Usage
  2. Making Requests

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.

PreviousPaginationNextCustom Requests

Last updated 1 year ago