labor_units

Fetch labor units matching the supplied arguments.

Arguments

ArgumentTypeRequiredDefaultDescription
warehouse_idStringNo

Filter by public API warehouse ID. Use this ID field when selecting a warehouse; warehouse fields are display values or nested objects.

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": "V2FyZWhvdXNlOjEyMzQ=",
  "analyze": true
}

Response

{
  "data": {
    "labor_units": {
      "request_id": "UmVjb3JkOjEyMzQ=",
      "complexity": 100,
      "data": [{id: "TGFib3JVbml0OjEyMzQ="}]
    }
  }
}