Solved

Admin API OR GraphQL - Product - how get access to "Standard PRODUCT TYPE".

myappsmarket
Shopify Partner
3 0 1

Hello,

I have trouble finding in manual how to access (READ) via AdminAPI or GraphQL how values from field.

myappsmarket_0-1636526576103.png

myappsmarket_2-1636526634604.png

 

myappsmarket_1-1636526595281.png

 

 

Accepted Solution (1)
Jayvin
Shopify Partner
284 42 89

This is an accepted solution.

Hi,

Tested using the unstable api version.

{
  products(first: 5) {
    edges {
      node {
        standardProductType {
          fullName
          name
        }
      }
    }
  }
}

 

Ref here

Related post

banned

View solution in original post

Replies 3 (3)

Jayvin
Shopify Partner
284 42 89

Hi,

It's the product_type property.

banned
myappsmarket
Shopify Partner
3 0 1

Hi,

The product_type field is a custom product type, not a Standard product type.

myappsmarket_0-1636539670311.pngmyappsmarket_1-1636539674267.png

 

 

Jayvin
Shopify Partner
284 42 89

This is an accepted solution.

Hi,

Tested using the unstable api version.

{
  products(first: 5) {
    edges {
      node {
        standardProductType {
          fullName
          name
        }
      }
    }
  }
}

 

Ref here

Related post

banned