labor_units

Arguments

ArgumentTypeRequiredDefaultDescription
warehouse_idStringNo
analyzeBooleanNo

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

Return Type

LaborUnitsQueryResult

Query

query labor_units(
  $warehouse_id: String,
  $analyze: Boolean
) {
  labor_units(
    warehouse_id: $warehouse_id,
    analyze: $analyze
  ) {
    request_id
    complexity
    data {
      ...LaborUnitConnectionFragment
    }
  }
}

Variables

{
  "warehouse_id": "abc123",
  "analyze": true
}

Response

{
  "data": {
    "labor_units": {
      "request_id": "abc123",
      "complexity": 987,
      "data": LaborUnitConnection
    }
  }
}