> Documentation index: [Saleor](/llms.txt) · [This section](/api-reference/products/llms.txt)
> Source: https://docs.saleor.io/api-reference/products/queries/collections

# collections Query

List of the shop's collections.

Requires one of the following permissions to include the unpublished items: MANAGE\_ORDERS MANAGE\_DISCOUNTS MANAGE\_PRODUCTS

```graphql
collections(
  filter: CollectionFilterInput
  where: CollectionWhereInput
  sortBy: CollectionSortingInput
  channel: String
  before: String
  after: String
  first: Int
  last: Int
): CollectionCountableConnection
```

Details

```graphql
type CollectionCountableConnection {
  pageInfo: PageInfo!
  edges: [CollectionCountableEdge!]!
  totalCount: Int
}
```

<a id="arguments"></a>

### Arguments

<a id="filter"></a>

#### [`filter`](#filter) ● [`CollectionFilterInput`](/api-reference/products/inputs/collection-filter-input.md)

Filtering options for collections.

<a id="where"></a>

#### [`where`](#where) ● [`CollectionWhereInput`](/api-reference/products/inputs/collection-where-input.md)

Where filtering options for collections.

<a id="sort-by"></a>

#### [`sortBy`](#sort-by) ● [`CollectionSortingInput`](/api-reference/products/inputs/collection-sorting-input.md)

Sort collections.

<a id="channel"></a>

#### [`channel`](#channel) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

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

<a id="before"></a>

#### [`before`](#before) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

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

<a id="after"></a>

#### [`after`](#after) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

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

<a id="first"></a>

#### [`first`](#first) ● [`Int`](/api-reference/miscellaneous/scalars/int.md)

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

<a id="last"></a>

#### [`last`](#last) ● [`Int`](/api-reference/miscellaneous/scalars/int.md)

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

<a id="type"></a>

### Type

<a id="collectioncountableconnection"></a>

#### [`CollectionCountableConnection`](/api-reference/products/objects/collection-countable-connection.md)

Represents a connection to a list of collections.
