GraphqlQueryError: Access denied for products field.

GraphqlQueryError: Access denied for products field.

Devejo
Shopify Partner
15 0 4

Hi,

 

I've been trying to fetch my products details using graphQL but unfortunately encoutered a permission issue.

I tried to adjust my scopes in the shopify.app.toml and run the comman 

npm run deploy

since

shopify app config push

is no longer use, but it seems like the issue still not fixed.

 

Here's my basic query. I'm using a shopify CLI 3.56.1 version BTW.

 

const storeProductsInfo = await admin.graphql(
    `#graphql
      query {
        products(first:2) {
          nodes {
            id
            title
          }
        }
      }`,
      {
        variables: {}
      }
    );
Thanks in advance.
Replies 2 (2)

chuanbaolu
Shopify Partner
1 0 0

I have the same issue.

msa-bl
Shopify Partner
7 0 0

We have the same issue, did you managed to figure it out?