ProductionQu Query

getOperationCompletionByOperation

Topics: Jobs

Fetch the most recent completion record for an operation. Requires operation:read permission.

Returns

OperationCompletionState

Arguments

Operation ID to find completion for

Examples

Read Printing Completion

query ReadPrintingCompletion($operationId: OperationID!) {
  getOperationCompletionByOperation(operationId: $operationId) {
    id operationId startedAt completedAt actualDurationMinutes
    goodCount wasteCount totalPlanned countUnit
  }
}

Variables

{
  "operationId": "opr_1k6csk6csk8csr6csk6csk6csk"
}
Exact field SDL
"""
Fetch the most recent completion record for an operation. Requires operation:read permission.
"""
getOperationCompletionByOperation(
  """Operation ID to find completion for"""
  operationId: OperationID!
): OperationCompletionState @topic(names: ["jobs"]) @topic_example(names: ["production.read-completion"])

Declared on Query. Access is checked by the platform for each operation.