collection Query
Look up a collection by ID or slug. If slugLanguageCode is provided, category will be fetched by slug translation.
collection(
id: ID
slug: String
slugLanguageCode: LanguageCodeEnum
channel: String
): Collection
Show return type
Arguments
id ● ID
ID of the collection.
slug ● String
Slug of the collection
slugLanguageCode ● LanguageCodeEnum
Language code of the collection slug, omit to use primary slug.
Added in Saleor 3.21channel ● String
Slug of a channel for which the data should be returned.
Type
Collection
Represents a collection of products.