Skip to main content

Collections

The useCollections 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, description
  • image — optional collection image (url, altText)
When fetching a single collection with getCollection(handle), the response also includes:
  • products(first: 20) — product edges with id, title, handle, description, availableForSale, priceRange, images(first: 1), variants(first: 1)