Return collections metafields in Storefront API

Highlighted
Tourist
4 0 5

Currently, the Storefront API returns metafields for products:

 

https://shopify.dev/tutorials/retrieve-metafields-with-storefront-api#retrieve-a-list-of-metafields

 

But fails with `Field 'metafields' doesn't exist on type 'Collection'` when querying `collectionByHandle`.

 

We want to use metafields for ordering our collections in our page. If they are already being returned for products, I don't see a reason why they shouldn't be returned for collections.

0 Likes
Highlighted
Shopify Partner
4 1 0

+1. I'm using metafields extensively in a custom theme. It would be very useful to have access to collection metafields via the storefront api.

0 Likes