Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

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

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