This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Support for ProductCollectionSortKeys and ProductImageSortKeys #32065
Labels
topic: source-shopify
Related to the gatsby-source-shopify plugin
Adding support for ProductCollectionSortKeys and ProductImageSortKeys would be welcome additions.
ProductCollectionSortKeys
You can imagine a situation where filtering collections of products on the frontend becomes much more feasible using
ProductCollectionSortKeys
(mentioned in gatsbyjs/gatsby-source-shopify#112).ProductImageSortKeys
In (limited) testing it seems that Shopify's Admin API returns product images out of their natural order, whereas the Storefront API returns them in their natural order, based on how the product's images are positioned in the Shopify Admin UI.
Implementing
ProductImageSortKeys
would allow for proper ordering when using the Admin API, though I think defaulting to thePOSITION
value would be sufficient?Example queries:
The text was updated successfully, but these errors were encountered: