labor_units
Fetch labor units matching the supplied arguments.
Arguments
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
warehouse_id | String | No | Filter by public API warehouse ID. Use this ID field when selecting a warehouse; warehouse fields are display values or nested objects. | |
analyze | Boolean | No | If true, the query will only be analyzed (cost estimated) without executing it. |
Return Type
Query
query labor_units(
$warehouse_id: String,
$analyze: Boolean
) {
labor_units(
warehouse_id: $warehouse_id,
analyze: $analyze
) {
request_id
complexity
data {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
edges {
node {
id
legacy_id
name
warehouse_id
}
cursor
}
}
}
}Variables
{
"warehouse_id": "V2FyZWhvdXNlOjEyMzQ=",
"analyze": true
}Response
{
"data": {
"labor_units": {
"request_id": "UmVjb3JkOjEyMzQ=",
"complexity": 100,
"data": [{id: "TGFib3JVbml0OjEyMzQ="}]
}
}
}