Collections
TheuseCollections hook fetches the store’s collection list. Each collection can then be expanded to show its products.
Usage
Hook API
Collection Products
To display products within a collection, use the service method directly:Query Fields
Each collection edge returns:id,title,handle,descriptionimage— optional collection image (url,altText)
getCollection(handle), the response also includes:
products(first: 20)— product edges withid,title,handle,description,availableForSale,priceRange,images(first: 1),variants(first: 1)