picks_per_day

Gets the detail of each line item picked between the specified dates.Results are sorted by date, warehouse and user, but they can be filteredby warehouse_id if only interested in the picks 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
date_fromISODateTimeNo
date_toISODateTimeNo
analyzeBooleanNo

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

Return Type

PicksPerDayQueryResult

Query

query picks_per_day(
  $warehouse_id: String,
  $date_from: ISODateTime,
  $date_to: ISODateTime,
  $analyze: Boolean
) {
  picks_per_day(
    warehouse_id: $warehouse_id,
    date_from: $date_from,
    date_to: $date_to,
    analyze: $analyze
  ) {
    request_id
    complexity
    data {
      ...PickConnectionFragment
    }
  }
}

Variables

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

Response

{
  "data": {
    "picks_per_day": {
      "request_id": "abc123",
      "complexity": 987,
      "data": PickConnection
    }
  }
}