work_orders

Arguments

ArgumentTypeRequiredDefaultDescription
status[String]No
wo_type[String]No
requested_date_fromISODateTimeNo
requested_date_toISODateTimeNo
updated_at_fromISODateTimeNo
updated_at_toISODateTimeNo
customer_account_idIntNo
analyzeBooleanNo

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

Return Type

WorkOrdersQueryResult

Query

query work_orders(
  $status: [String],
  $wo_type: [String],
  $requested_date_from: ISODateTime,
  $requested_date_to: ISODateTime,
  $updated_at_from: ISODateTime,
  $updated_at_to: ISODateTime,
  $customer_account_id: Int,
  $analyze: Boolean
) {
  work_orders(
    status: $status,
    wo_type: $wo_type,
    requested_date_from: $requested_date_from,
    requested_date_to: $requested_date_to,
    updated_at_from: $updated_at_from,
    updated_at_to: $updated_at_to,
    customer_account_id: $customer_account_id,
    analyze: $analyze
  ) {
    request_id
    complexity
    data {
      ...WorkOrderIdentifiableTypeConnectionFragment
    }
  }
}

Variables

{
  "status": ["abc123"],
  "wo_type": ["abc123"],
  "requested_date_from": ISODateTime,
  "requested_date_to": ISODateTime,
  "updated_at_from": ISODateTime,
  "updated_at_to": ISODateTime,
  "customer_account_id": 987,
  "analyze": true
}

Response

{
  "data": {
    "work_orders": {
      "request_id": "abc123",
      "complexity": 987,
      "data": WorkOrderIdentifiableTypeConnection
    }
  }
}