GraphqlQueryError: Access Denied For Products Field.

GraphqlQueryError: Access Denied For Products Field.

Devejo
Shopify Partner
18 0 5

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 command 

npm run deploy

since

shopify app config push

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

 

I'm using a shopify CLI 3.56.1 version BTW.

Here's my basic query:

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

Thanks in advance.

 

 

Replies 0 (0)