Collection¶
The Collection object represents a single collection of products in the storefront.
classDiagram
direction LR
Collection --> ProductsList
Collection --> CollectionUrl
ProductsList "1" --o "*" Product
class Product{
}
class ProductsList{
}
class CollectionUrl{
}
class Collection{
int id
string name
CollectionUrl url
string description
string additionalDescription
Metafields metafields
ProductsList products
}
Properties¶
Attribute name | Type | Description |
---|---|---|
id | int |
The unique identifier of the collection. |
name | string |
The name of the collection. |
url | CollectionUrl |
The CollectionUrl object that represents the url to the collection. |
description | string |
The description of the collection. |
additionalDescription | string |
The additional description of the collection. |
metafields | Metafields |
Reference to the Metafields object that provides access to the namespaced containers for key - value pairs of data. |
products | ProductsList |
Reference to the ProductsList object that represents the list of Product objects associated with this collection. |