From 63cc88c3b8eb055f089da21a17f12f7df753133e Mon Sep 17 00:00:00 2001 From: Jas Singh Date: Tue, 15 Nov 2022 16:45:06 -0800 Subject: [PATCH] Feat: added api_version to graphQl() --- src/Shopify.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Shopify.php b/src/Shopify.php index 7fb2143..d577c17 100644 --- a/src/Shopify.php +++ b/src/Shopify.php @@ -74,7 +74,7 @@ public function getHttpClient(): PendingRequest public function graphQl(): PendingRequest { - return Http::baseUrl("https://{$this->domain}/admin/api/graphql.json") + return Http::baseUrl("https://{$this->domain}/admin/api/{$this->apiVersion}/graphql.json") ->withHeaders(['X-Shopify-Access-Token' => $this->accessToken]); }