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
Arguments
collection.id ● ID scalar miscellaneous
ID of the collection.
collection.slug ● String scalar miscellaneous
Slug of the collection
collection.slugLanguageCode ● LanguageCodeEnum enum miscellaneous
Language code of the collection slug, omit to use primary slug.
Added in Saleor 3.21 (unreleased)collection.channel ● String scalar miscellaneous
Slug of a channel for which the data should be returned.
Type
Collection object products
Represents a collection of products.