---
title: warehouses Query
seo:
  title: warehouses Query
  description: 'Query: warehouses Query'
slug: api-reference/products/queries/warehouses
sidebar:
  label: warehouses
search:
  tags:
    - API reference
    - Products
lastModified: '2026-04-13'
---

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
```

## Returns

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

<details>
<summary>Show return type</summary>


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


</details>

## Arguments

### filter [#filter]

**`filter`** · [`WarehouseFilterInput`](/api-reference/products/inputs/warehouse-filter-input)



### sortBy [#sort-by]

**`sortBy`** · [`WarehouseSortingInput`](/api-reference/products/inputs/warehouse-sorting-input)



### before [#before]

**`before`** · [`String`](/api-reference/miscellaneous/scalars/string)

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

### after [#after]

**`after`** · [`String`](/api-reference/miscellaneous/scalars/string)

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

### first [#first]

**`first`** · [`Int`](/api-reference/miscellaneous/scalars/int)

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

### last [#last]

**`last`** · [`Int`](/api-reference/miscellaneous/scalars/int)

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

---

Schema: **Saleor 3.23.43**. [Download SDL](/schema/saleor.graphql).
