labor_units
Arguments
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
warehouse_id | String | No | ||
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": "abc123",
"analyze": true
}Response
{
"data": {
"labor_units": {
"request_id": "abc123",
"complexity": 987,
"data": LaborUnitConnection
}
}
}