List product sizes using graphql #2577
w3nda
started this conversation in
Show and tell
Replies: 1 comment
-
👋 Hey @w3nda Could Filters work for your scenario?
On the demo store, this returns:
More info + tutorial here: https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/products-collections/filter-products |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So I was searching like crazy how you can list the product sizes, fetch all of them so you can show them in a filter panel for example and filter products accordingly.
I couldn't find any documentation for it, nor any example for it so I'm gonna leave this here if anyone ever needs this.
Turns out it's a metaobject, so you can just use the metaobject query to get it.
Beta Was this translation helpful? Give feedback.
All reactions