Skip to content

Commit

Permalink
Feat: added api_version to graphQl()
Browse files Browse the repository at this point in the history
  • Loading branch information
jassingh9 committed Nov 16, 2022
1 parent 56a4ab6 commit 63cc88c
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 63cc88c

Please sign in to comment.