Collection
ObjectDefines 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.
- [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.
- ProductConnection!
products A list of products associated with the collection.
- Long!
productsCount The number of products that are associated with the collection.
- String!
slug 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.