Collection
ObjectRepresents a collection, encapsulating all information required to display and manage collections across storefronts and sales channels.
Each collection includes core details such as title, description, and associated products. Collections can be organized hierarchically to create a structured navigation experience for customers.
Fields
- ID!
id The ID of the collection.
- [Metafield!]!
metafields A list of metafields associated with the collection. If a metafield definition has no explicit assignment for this collection, the definition’s default value is returned.
- String!
name The name of the collection.
- ProductVariantConnection!
productVariants A paged list of product variants whose products are associated with the collection.
- ProductsConnection!
products List of products in the collection.
- String!
slug The slug of the collection.
Queries
Gets a single
Collectionby its ID or slug.Returns a list of collections.