locations

Arguments

ArgumentTypeRequiredDefaultDescription
warehouse_idStringNo
skuStringNo
nameStringNo
pickableBooleanNo
sellableBooleanNo
location_type_idStringNo
analyzeBooleanNo

If true, the query will only be analyzed (cost estimated) without executing it.

Return Type

LocationsQueryResult

Query

query locations(
  $warehouse_id: String,
  $sku: String,
  $name: String,
  $pickable: Boolean,
  $sellable: Boolean,
  $location_type_id: String,
  $analyze: Boolean
) {
  locations(
    warehouse_id: $warehouse_id,
    sku: $sku,
    name: $name,
    pickable: $pickable,
    sellable: $sellable,
    location_type_id: $location_type_id,
    analyze: $analyze
  ) {
    request_id
    complexity
    data {
      ...LocationConnectionFragment
    }
  }
}

Variables

{
  "warehouse_id": "abc123",
  "sku": "abc123",
  "name": "abc123",
  "pickable": true,
  "sellable": true,
  "location_type_id": "abc123",
  "analyze": true
}

Response

{
  "data": {
    "locations": {
      "request_id": "abc123",
      "complexity": 987,
      "data": LocationConnection
    }
  }
}