Skip to content

Commit 345f1f3

Browse files
authored
Merge pull request #38 from jassingh9/graphql_api_version
Added API Version to GraphQL
2 parents 2c93ec9 + 63cc88c commit 345f1f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Shopify.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function getHttpClient(): PendingRequest
7474

7575
public function graphQl(): PendingRequest
7676
{
77-
return Http::baseUrl("https://{$this->domain}/admin/api/graphql.json")
77+
return Http::baseUrl("https://{$this->domain}/admin/api/{$this->apiVersion}/graphql.json")
7878
->withHeaders(['X-Shopify-Access-Token' => $this->accessToken]);
7979
}
8080

0 commit comments

Comments
 (0)