packs_per_day

Gets the detail of each shipment's package between the specified dates.Results are sorted by date, warehouse and user, but they can be filteredby warehouse_id if only interested in the packages from a particular warehouse.The sorting can be overriden by specifying any other field or list of fields from the output type.

Arguments

ArgumentTypeRequiredDefaultDescription
warehouse_idStringNo
user_idStringNo
order_idStringNo
order_numberStringNo
date_fromISODateTimeNo
date_toISODateTimeNo
analyzeBooleanNo

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

Return Type

PacksPerDayQueryResult

Query

query packs_per_day(
  $warehouse_id: String,
  $user_id: String,
  $order_id: String,
  $order_number: String,
  $date_from: ISODateTime,
  $date_to: ISODateTime,
  $analyze: Boolean
) {
  packs_per_day(
    warehouse_id: $warehouse_id,
    user_id: $user_id,
    order_id: $order_id,
    order_number: $order_number,
    date_from: $date_from,
    date_to: $date_to,
    analyze: $analyze
  ) {
    request_id
    complexity
    data {
      ...PackageConnectionFragment
    }
  }
}

Variables

{
  "warehouse_id": "abc123",
  "user_id": "abc123",
  "order_id": "abc123",
  "order_number": "abc123",
  "date_from": ISODateTime,
  "date_to": ISODateTime,
  "analyze": true
}

Response

{
  "data": {
    "packs_per_day": {
      "request_id": "abc123",
      "complexity": 987,
      "data": PackageConnection
    }
  }
}