Skip to main content
Version: 3.x

collections

List of the shop's collections.

Requires one of the following permissions to include the unpublished items: MANAGE_ORDERSMANAGE_DISCOUNTSMANAGE_PRODUCTS
collections(
filter: CollectionFilterInput
where: CollectionWhereInput
sortBy: CollectionSortingInput
channel: String
before: String
after: String
first: Int
last: Int
): CollectionCountableConnection

Arguments

collections.filter ● CollectionFilterInput input

Filtering options for collections.

collections.where ● CollectionWhereInput input

Where filtering options.

Added in Saleor 3.14
This API is currently in Feature Preview and can be subject to changes at later point.

collections.sortBy ● CollectionSortingInput input

Sort collections.

collections.channel ● String scalar

Slug of a channel for which the data should be returned.

collections.before ● String scalar

Return the elements in the list that come before the specified cursor.

collections.after ● String scalar

Return the elements in the list that come after the specified cursor.

collections.first ● Int scalar

Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.

collections.last ● Int scalar

Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.

Type

CollectionCountableConnection object

Represents a connection to a list of collections.


Was this page helpful?