Docs
Dashboard

Collection

Object

Defines a set of products in our catalog that can be grouped either manually or automatically based on criteria such as tags, categories, or attributes. Collections enable flexible organization and presentation of items across storefronts, marketing campaigns, and custom sales channels. Manual collections let administrators assign products directly, while automated collections update dynamically as product data changes.

#

Fields


id
ID!

The unique identifier 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.

products
ProductConnection!

A list of products associated with the collection.

productsCount
Long!

The number of products that are associated with the collection.

slug
String!

The slug of the collection.

#

Queries


Returns a Collection by its ID.

Returns a list of collections.

#

Mutations


Creates a new collection with the specified name and slug.

Deletes a collection by its ID.

Reorders products within a collection.

Updates an existing collection by its ID.