Docs
Dashboard

Collection

Object

Represents 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.

metafields
[Metafield!]!

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.

name
String!

The name of the collection.

productVariants
ProductVariantConnection!

A paged list of product variants whose products are associated with the collection.

products
ProductsConnection!

List of products in the collection.

slug
String!

The slug of the collection.

#

Queries


Gets a single Collection by its ID or slug.

Returns a list of collections.