List of product relations for a specific product

In this example, we're using a specific product with SKU47.

For your query please use your own.

query productRelation {
  product(sku: "SKU47") {
    sku
    __typename
    createdAt
    editedAt
    attributeList {
      pageInfo {
        hasNextPage
        endCursor
      }
      edges {
        __typename
        node {
          __typename
          attribute {
            __typename
            code
          }
          translations {
            ... on AttributeValueTranslation {
              ... on ProductRelationAttributeValueTranslation {
                language
                value {
                  sku
                }
              }
            }
            __typename
            language
          }
        }
      }
    }
  }
}

Last updated