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

# stocks Query

List of stocks.

Requires the MANAGE\_PRODUCTS permission.

```graphql
stocks(
  filter: StockFilterInput
  before: String
  after: String
  first: Int
  last: Int
): StockCountableConnection
```

Details

```graphql
type StockCountableConnection {
  pageInfo: PageInfo!
  edges: [StockCountableEdge!]!
  totalCount: Int
}
```

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

### Arguments

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

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

<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="stockcountableconnection"></a>

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