packers_performance_dashboard

Returns a paginated list of packer performance stats for a warehouse. All duration fields are returned in seconds. Results are ordered by score DESC by default. Please note that this query is EXPERIMENTAL and may be changed, renamed, or removed without notice. For that reason, it must not be used for integrations. This query must also be enabled as a feature for the account; otherwise, the API responds with "Feature not enabled".

Arguments

ArgumentTypeRequiredDefaultDescription
warehouse_idID!Yes

public_api warehouse id

date_fromISODateTimeNo
date_toISODateTimeNo
firstIntNo

Page size (workforce_hero cursor pagination)

cursorStringNo

Cursor returned by a previous page

analyzeBooleanNo

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

Return Type

PackersPerformanceDashboardResult

Query

query packers_performance_dashboard(
  $warehouse_id: ID!,
  $date_from: ISODateTime,
  $date_to: ISODateTime,
  $first: Int,
  $cursor: String,
  $analyze: Boolean
) {
  packers_performance_dashboard(
    warehouse_id: $warehouse_id,
    date_from: $date_from,
    date_to: $date_to,
    first: $first,
    cursor: $cursor,
    analyze: $analyze
  ) {
    request_id
    complexity
    data {
      ...PackerPerformancePageFragment
    }
  }
}

Variables

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

Response

{
  "data": {
    "packers_performance_dashboard": {
      "request_id": "abc123",
      "complexity": 987,
      "data": PackerPerformancePage
    }
  }
}