0

I was using GraphQL to get the products of my shop and I can´t get his attributes. In my shop, there is several products with is unique attributeSet. I use the next query to get the attribute_set_id of the product:

query{
  products(filter: {category_id: {eq: "1"}}){
    items{
      attribute_set_id
    }
  }
}

Is there a way to get the attributeSet of this product with the id?

1 Answer 1

0

looks like attribute set is a metadata that is not available in graphql definition.

my explanation would be that PWA Magento frontend does not need this data to surface and therefore no graphql query was written to retrieve the data you're seeking.

Of course, you can create a custom graphql entry point that will have its own resolver. The graphql architecture being up and running already, it is fast to add your own entry point

1
  • my answer is about attribute set, not attributes Dec 9, 2020 at 14:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.