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

# warehouses Query

List of warehouses.

Requires one of the following permissions: MANAGE\_PRODUCTS MANAGE\_ORDERS MANAGE\_SHIPPING

```graphql
warehouses(
  filter: WarehouseFilterInput
  sortBy: WarehouseSortingInput
  before: String
  after: String
  first: Int
  last: Int
): WarehouseCountableConnection
```

Details

```graphql
type WarehouseCountableConnection {
  pageInfo: PageInfo!
  edges: [WarehouseCountableEdge!]!
  totalCount: Int
}
```

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

### Arguments

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

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

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

#### [`sortBy`](#sort-by) ● [`WarehouseSortingInput`](/api-reference/products/inputs/warehouse-sorting-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="warehousecountableconnection"></a>

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