Skip to content

Commit

Permalink
Replace query() call with request()
Browse files Browse the repository at this point in the history
  • Loading branch information
paulomarg committed Jan 24, 2024
1 parent acb0eed commit d8f8436
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/polite-birds-unite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/shopify-app-express': patch
---

Replaced query() internal call in the GraphQL client with request()
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export async function hasValidAccessToken(
): Promise<boolean> {
try {
const client = new api.clients.Graphql({session});
await client.query({data: TEST_GRAPHQL_QUERY});
await client.request(TEST_GRAPHQL_QUERY);
return true;
} catch (error) {
if (error instanceof HttpResponseError && error.response.code === 401) {
Expand Down

0 comments on commit d8f8436

Please sign in to comment.