โ† API reference
Query / logistics

listWarehouseLocations

List the caller's tenant's warehouse locations, filtered and sorted, as a paginated connection. Requires warehouseLocation:list permission.

Arguments

firstInt

Maximum number of locations to return from the start of the page. Defaults to 20; values above the server's page-size limit (100) are rejected.

afterString

Opaque cursor from a previous page's endCursor: the page starts at the location immediately after it, in the requested sort order.

Narrows the locations returned; omit to list all of the tenant's locations.

Ordering rules to apply. Only the first rule is honoured, and both its field and direction are applied; omit to order by creation time, newest first.

Returns WarehouseLocationConnection!

Scalar fields at a glance

totalCountInt
โ†— View the complete WarehouseLocationConnection type

Explore in a view

Fulfillment
View exact SDL
"""
List the caller's tenant's warehouse locations, filtered and sorted, as a paginated connection. Requires warehouseLocation:list permission.
"""
listWarehouseLocations(
  """
  Maximum number of locations to return from the start of the page. Defaults to 20; values above the server's page-size limit (100) are rejected.
  """
  first: Int
  """
  Opaque cursor from a previous page's endCursor: the page starts at the location immediately after it, in the requested sort order.
  """
  after: String
  """
  Narrows the locations returned; omit to list all of the tenant's locations.
  """
  filter: WarehouseLocationFilterInput
  """
  Ordering rules to apply. Only the first rule is honoured, and both its field and direction are applied; omit to order by creation time, newest first.
  """
  sort: [WarehouseLocationSortInput!]
): WarehouseLocationConnection! @topic(names: ["logistics"])

Schema reference describes the API contract. Actual access is checked by the platform for every operation.