Skip to content

Commit

Permalink
Merge pull request #27 from eafarooqi/graphql-url-fix
Browse files Browse the repository at this point in the history
fix: graphQL url without version
  • Loading branch information
pactode authored Jan 20, 2022
2 parents 24c3637 + d9f980a commit 7a7d9cc
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 @@ -75,7 +75,7 @@ public function getHttpClient(): PendingRequest

public function graphQl(): PendingRequest
{
return Http::baseUrl($this->getBaseUrl().'/graphql.json')
return Http::baseUrl("https://{$this->domain}/admin/api/graphql.json")
->withHeaders(['X-Shopify-Access-Token' => $this->password]);
}

Expand Down

0 comments on commit 7a7d9cc

Please sign in to comment.