carrier_boxes

Arguments

ArgumentTypeRequiredDefaultDescription
warehouse_idStringNo
warehouse_identifierStringNo
carrierStringNo
only_activeBooleanNo

Whether to show only active boxes

only_in_stockBooleanNo

Whether to only show boxes in stock

analyzeBooleanNo

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

Return Type

CarrierBoxesQueryResult

Query

query carrier_boxes(
  $warehouse_id: String,
  $warehouse_identifier: String,
  $carrier: String,
  $only_active: Boolean,
  $only_in_stock: Boolean,
  $analyze: Boolean
) {
  carrier_boxes(
    warehouse_id: $warehouse_id,
    warehouse_identifier: $warehouse_identifier,
    carrier: $carrier,
    only_active: $only_active,
    only_in_stock: $only_in_stock,
    analyze: $analyze
  ) {
    request_id
    complexity
    data {
      ...CarrierBoxConnectionFragment
    }
  }
}

Variables

{
  "warehouse_id": "abc123",
  "warehouse_identifier": "abc123",
  "carrier": "abc123",
  "only_active": true,
  "only_in_stock": true,
  "analyze": true
}

Response

{
  "data": {
    "carrier_boxes": {
      "request_id": "abc123",
      "complexity": 987,
      "data": CarrierBoxConnection
    }
  }
}