I am using v2.4 in which in the products query I am getting the Optionid of select attribute instead of attribute option label. Like if i try to get color(select type) then I get value of red instead of label Red
So anybody can help me get the label instead of id
Here is my sample code
query {
products(search:"test", pageSize: 15, sort: {price: DESC}) {
total_count
items {
name
sku
color
price_range {
minimum_price {
regular_price {
value
currency
}
}
}
}
}
}
-
Try thisshreyas d– shreyas d2021年03月28日 10:35:02 +00:00Commented Mar 28, 2021 at 10:35
1 Answer 1
You can also find the attribute option label by searching the attribute option ID with https://devdocs.magento.com/guides/v2.4/graphql/queries/custom-attribute-metadata.html
Explore related questions
See similar questions with these tags.