Access a community of over 900,000 Shopify Merchants and Partners and engage in meaningful conversations with your peers.
It would be very helpful if metafields could be exposed on Collection also in the storefront api. All the infrastructure seems to be in place for this to happen as it is exposed on Product and ProductVariant.
The metafields can already be made visibile via the metafieldStorefrontVisibilityCreate by setting the owner type as COLLECTION. However the metafields is not exposed at all in the storefront api.
Would be really great if someone could enable that. I can't really see any downsides given metafields would not be visible by default, and from all I could tell it should be pretty quick to do.
Hi @Holm
It is a feature request we are aware of and will investigate adding. The best place to watch will be the changelog. Thanks!
Vix | Developer Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Hi vix, so are you planing to release this feature? I mean what are collection metafields even for when you can't read them with the Storefront API...
It looks like it is coming soon: https://shopify.dev/changelog/metafields-in-graphql-storefront-api-available-on-additional-resources
That's good news! I'm currently abusing the collection's description by storing all my metafields as a JSON-String in there and parsing it on the client side LOL😅
User | RANK |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |