Skip to content

Commit

Permalink
Merge pull request #38 from jassingh9/graphql_api_version
Browse files Browse the repository at this point in the history
Added API Version to GraphQL
  • Loading branch information
Razorsheep authored Aug 2, 2023
2 parents 2c93ec9 + 63cc88c commit 345f1f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Shopify.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}

Expand Down

0 comments on commit 345f1f3

Please sign in to comment.